Sqlite3 is not compiling in Linux

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Sqlite3 is not compiling in Linux

Pramoda M. A
Hi All,

 

I tried to compile in Linux. But it is giving error at linking stage as
'unreferenced dlopne dlclose...

Can anybody help me?

 

With Regards

Pramoda.M.A

KPIT Cummins Infosystems Limited | Bengaluru | Board: +91 80 30783905

 


_______________________________________________
sqlite-users mailing list
[hidden email]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|

Re: Sqlite3 is not compiling in Linux

Vivien Malerba
2009/4/14 Pramoda M. A <[hidden email]>

> Hi All,
>
>
>
> I tried to compile in Linux. But it is giving error at linking stage as
> 'unreferenced dlopne dlclose...
>
> Can anybody help me?


did you add the -ldl linker flag?

Vivien
_______________________________________________
sqlite-users mailing list
[hidden email]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|

Re: Sqlite3 is not compiling in Linux

Pramoda M. A
What I have done is,

Cc -lpthread sqlite3.o ourApplication.o -o main

Then it is giving linker error. Is it right?

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Vivien Malerba
Sent: Tuesday, April 14, 2009 5:14 PM
To: General Discussion of SQLite Database
Subject: Re: [sqlite] Sqlite3 is not compiling in Linux

2009/4/14 Pramoda M. A <[hidden email]>

> Hi All,
>
>
>
> I tried to compile in Linux. But it is giving error at linking stage
as
> 'unreferenced dlopne dlclose...
>
> Can anybody help me?


did you add the -ldl linker flag?

Vivien
_______________________________________________
sqlite-users mailing list
[hidden email]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________
sqlite-users mailing list
[hidden email]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|

Re: Sqlite3 is not compiling in Linux

Vivien Malerba
2009/4/14 Pramoda M. A <[hidden email]>

> What I have done is,
>
> Cc -lpthread sqlite3.o ourApplication.o -o main
>
> Then it is giving linker error. Is it right?


try instead:
cc -lpthread -ldl sqlite3.o ourApplication.o -o main

Vivien
_______________________________________________
sqlite-users mailing list
[hidden email]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users