Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT problem linking to dll
CDT problem linking to dll [message #151157] Mon, 15 August 2005 21:10 Go to next message
Eclipse UserFriend
Originally posted by: libkuman.gmail.com

I'm doing a managed make C++ project using the CDT and I cannot
successfully link to a DLL.

Within my C:\include directory i have a .h, a .dll, and a .lib file.

From the C/C++ Build section of the projects properties, i clicked on the
Libraries section of the GCC C++ Linker section. From there i added my
lib in the library (-l) section, and the C:\include directory the the
Library Search Path (-L) section.

When i try to build i get the following error

Building target: TeletypeManaged.exe
g++ -L"C:\include" -Wl,--out-implib=-Wl -o TeletypeManaged.exe
TeletypeInterfaceManaged.o -l"C:\include\TTGPSAPI.lib"
c:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bi n\ld.exe:
cannot find -lC:\include\TTGPSAPI.lib

I'm really confused because the error has the correct path to my .lib file.

Can anybody help me out?
Re: CDT problem linking to dll [message #151188 is a reply to message #151157] Tue, 16 August 2005 08:24 Go to previous message
Andrés Wellmann Jelic is currently offline Andrés Wellmann JelicFriend
Messages: 32
Registered: July 2009
Member
Hi!

You should first search for other entries in this list. For example:

>> You have one error in this line. If you use the "-l" flag you should
>> type>
>> "-lxerces-c". The pre- and suffix is added automatically.

>> But, what I don't know is wether this versioning number is recognized.
>> Perhaps you
>> should first create a symbolic link without the number
>> (on LINUX via "ln -s libxerces-c.so.25.0 libxerces-c.so")
>> and then type "-lxerces-c".

>> The other possibility is to just type "/usr/lib/libxerces-c.so.25.0",
>> without -l
>> or -L. This should also work.


>> andrés

> Am Thu, 16 Jun 2005 00:58:28 +0200 schrieb Al <allelopath@hotmail.com>:

> The steps i took result in the linker using these options:
> -l/usr/lib/libxerces-c.so.25.0 -L/usr/lib/


this should help
andrés





Am Mon, 15 Aug 2005 23:10:21 +0200 schrieb Mark Libkuman
<libkuman@gmail.com>:

> I'm doing a managed make C++ project using the CDT and I cannot
> successfully link to a DLL. Within my C:\include directory i have a .h,
> a .dll, and a .lib file.
>
> From the C/C++ Build section of the projects properties, i clicked on
> the Libraries section of the GCC C++ Linker section. From there i added
> my lib in the library (-l) section, and the C:\include directory the the
> Library Search Path (-L) section.
>
> When i try to build i get the following error
>
> Building target: TeletypeManaged.exe
> g++ -L"C:\include" -Wl,--out-implib=-Wl -o TeletypeManaged.exe
> TeletypeInterfaceManaged.o -l"C:\include\TTGPSAPI.lib"
> c:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bi n\ld.exe:
> cannot find -lC:\include\TTGPSAPI.lib
>
> I'm really confused because the error has the correct path to my .lib
> file.
>
> Can anybody help me out?
>



--
Erstellt mit Operas
Previous Topic:wxWidgets with CDT
Next Topic:Debugger problem in CDT 3.0 RC3
Goto Forum:
  


Current Time: Sun Oct 06 13:00:44 GMT 2024

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

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

Back to the top