Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Managed Make C++ Project - Compiling Issues
Managed Make C++ Project - Compiling Issues [message #149504] Mon, 18 July 2005 06:50 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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.
>
Re: Managed Make C++ Project - Compiling Issues [message #150298 is a reply to message #149545] Fri, 29 July 2005 05:39 Go to previous message
Eclipse UserFriend
Originally posted by: mamtha.ragupathy.mettoni.com

Thanks for your help junaed.
Cheers
Mamtha
Previous Topic:Hacking error messages
Next Topic:Content Assist/Indexing not working when linking project with TAO
Goto Forum:
  


Current Time: Sat Jul 12 04:21:55 EDT 2025

Powered by FUDForum. Page generated in 0.07280 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top