Home » Community » Newbie corner » [SOLVED] I have a problem linking a LIB
[SOLVED] I have a problem linking a LIB [message #28462] |
Thu, 02 September 2010 16:05  |
jerson
Messages: 202 Registered: June 2010 Location: Bombay, India
|
Experienced Member |

|
|
I have a third party LIBrary that I want to link to.
One package I made as a test case for this library compiles and links correctly. To make the library link, I had to ADD LIBRARIES.... in the package configuration. That's it. The LIB in question is kept in the package directory just to be sure and I am trying to statically link in MINGW on WIN32.
Doing the same thing in another package just doesn't work. It keeps coming back with linker messages like these
C:/upp2625/out/JFsrtsystem/MINGW.Blitz.Gui.Main\NIDAQmx.o:NIDAQmx.c:(.text$Ni_ReadAllDI0+0x2f): undefined reference to `DAQm
xCreateTask'
C:/upp2625/out/JFsrtsystem/MINGW.Blitz.Gui.Main\NIDAQmx.o:NIDAQmx.c:(.text$Ni_ReadAllDI0+0x5a): undefined reference to `DAQm
xCreateDIChan'
C:/upp2625/out/JFsrtsystem/MINGW.Blitz.Gui.Main\NIDAQmx.o:NIDAQmx.c:(.text$Ni_ReadAllDI0+0x69): undefined reference to `DAQm
xStartTask'
C:/upp2625/out/JFsrtsystem/MINGW.Blitz.Gui.Main\NIDAQmx.o:NIDAQmx.c:(.text$Ni_ReadAllDI0+0xb6): undefined reference to `DAQm
xReadDigitalU32'
C:/upp2625/out/JFsrtsystem/MINGW.Blitz.Gui.Main\NIDAQmx.o:NIDAQmx.c:(.text$Ni_ReadAllDI0+0xda): undefined reference to `DAQm
xGetExtendedErrorInfo'
C:/upp2625/out/JFsrtsystem/MINGW.Blitz.Gui.Main\NIDAQmx.o:NIDAQmx.c:(.text$Ni_ReadAllDI0+0xe9): undefined reference to `DAQm
xStopTask'
C:/upp2625/out/JFsrtsystem/MINGW.Blitz.Gui.Main\NIDAQmx.o:NIDAQmx.c:(.text$Ni_ReadAllDI0+0xf4): undefined reference to `DAQm
xClearTask'
collect2: ld returned 1 exit status
Now, I know I have done everything that needed to be done, tried everything I know I can try; still no luck. The undefined references are in the NIDAQmx.LIB that I am trying to link to.
Can anyone point me to what may be wrong or where should I look? I am at the end of my rope.
Thank you
[Updated on: Sat, 11 September 2010 15:59] Report message to a moderator
|
|
|
 |
|
[SOLVED] I have a problem linking a LIB
By: jerson on Thu, 02 September 2010 16:05
|
 |
|
Re: I have a problem linking a LIB
By: jerson on Thu, 02 September 2010 17:30
|
 |
|
Re: I have a problem linking a LIB
By: koldo on Thu, 02 September 2010 18:19
|
 |
|
Re: I have a problem linking a LIB
By: jerson on Thu, 02 September 2010 19:09
|
 |
|
Re: I have a problem linking a LIB
By: koldo on Thu, 02 September 2010 22:12
|
 |
|
Re: I have a problem linking a LIB
By: jerson on Fri, 03 September 2010 02:55
|
 |
|
Re: I have a problem linking a LIB
By: koldo on Fri, 03 September 2010 08:20
|
 |
|
Re: I have a problem linking a LIB
By: koldo on Fri, 03 September 2010 08:28
|
 |
|
Re: I have a problem linking a LIB
By: jerson on Fri, 03 September 2010 05:14
|
 |
|
Re: I have a problem linking a LIB
By: jerson on Fri, 03 September 2010 08:50
|
 |
|
Re: I have a problem linking a LIB
By: koldo on Fri, 03 September 2010 09:31
|
 |
|
Re: [SOLVED] I have a problem linking a LIB
By: jibe on Tue, 17 May 2011 15:39
|
 |
|
Re: [SOLVED] I have a problem linking a LIB
By: koldo on Tue, 17 May 2011 15:56
|
 |
|
Re: [SOLVED] I have a problem linking a LIB
By: jibe on Mon, 23 May 2011 09:40
|
 |
|
Re: [SOLVED] I have a problem linking a LIB
By: koldo on Mon, 23 May 2011 16:03
|
 |
|
Re: [SOLVED] I have a problem linking a LIB
By: mr_ped on Tue, 24 May 2011 09:33
|
 |
|
Re: [SOLVED] I have a problem linking a LIB
By: jibe on Thu, 26 May 2011 11:24
|
Goto Forum:
Current Time: Sun Apr 27 18:50:58 CEST 2025
Total time taken to generate the page: 0.00726 seconds
|