Managed Make C++ Project - Compiling Issues [message #149504] |
Mon, 18 July 2005 06:50  |
Eclipse User |
|
|
|
Originally posted by: mamtha.ragupathy.mettoni.com
Hello All,
I am a newbie to ECLIPSE/Linux. I have created a MANAGED MAKE C++
PROJECT and have imported already existing/working .CPP files into this
project.
Now the problem is, when i build this PROJECT TYPE as a
"Executable(GNu)", it throws an exception 'UNDEFINED REFERENCE)in the
'dlopen' (a linux in-built function i have used in my project). Note: I
have already included the HeaderFile <dlfcn.h> of dlopen function.
But when i built the same project as a 'SHARED DLL(GNu)', it compiles,
builds and produces a .so(DLL) output file successfully.
I have tried to trace out similiar bug and fix for it through search
engines. But not of much help.
PLEASE ANY HELP WILL BE REALLY REALLY APPRECIABLE.
Thanks,
Mamtha.
|
|
|
Re: Managed Make C++ Project - Compiling Issues [message #149545 is a reply to message #149504] |
Tue, 19 July 2005 11:10   |
Eclipse User |
|
|
|
Originally posted by: junaed.cim.mcgill.ca
Hello Mamtha,
You have to link your executable with the -ldl flag. Go to project
properties, C++ Build, GCC C++ Linker and Libraries. Add 'ld' (without
the quotes) in the list of libraries. Clean and rebuild, that should do it.
Cheers,
-J-
Mamtha wrote:
> Hello All,
> I am a newbie to ECLIPSE/Linux. I have created a MANAGED MAKE C++
> PROJECT and have imported already existing/working .CPP files into this
> project.
> Now the problem is, when i build this PROJECT TYPE as a
> "Executable(GNu)", it throws an exception 'UNDEFINED REFERENCE)in the
> 'dlopen' (a linux in-built function i have used in my project). Note: I
> have already included the HeaderFile <dlfcn.h> of dlopen function.
> But when i built the same project as a 'SHARED DLL(GNu)', it compiles,
> builds and produces a .so(DLL) output file successfully.
> I have tried to trace out similiar bug and fix for it through search
> engines. But not of much help. PLEASE ANY HELP WILL BE REALLY REALLY
> APPRECIABLE.
> Thanks,
> Mamtha.
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.07280 seconds