•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 423,287 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 5,293 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser: Programming Forums
Views: 338 | Replies: 4
![]() |
•
•
Join Date: Feb 2008
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
Hello,
I've developed my project using C language on Linux platform. When I compiled my program, I got some linkage errors. I've read in some other C forum that the errors I'm getting is due to a linkage problem with the libraries. Can someone tell me the proper steps to fixing this problem. Here is the error messages:
[srb@fsktm src]$ gmake
/home/srb/SRB3_4_2/mySRB/src/alpha1.c:12723: undefined reference to `SQLAllocHandle'
alpha1.o(.text+0x296f6):/home/srb/SRB3_4_2/mySRB/src/alpha1.c:12724: undefined reference to `SQLSetEnvAttr'
alpha1.o(.text+0x29738):/home/srb/SRB3_4_2/mySRB/src/alpha1.c:12727: undefined reference to `SQLDrivers'
collect2: ld returned 1 exit status
gmake: *** [etd.cgi] Error 1
Thanks in advance.
Regards,
SYT
I've developed my project using C language on Linux platform. When I compiled my program, I got some linkage errors. I've read in some other C forum that the errors I'm getting is due to a linkage problem with the libraries. Can someone tell me the proper steps to fixing this problem. Here is the error messages:
[srb@fsktm src]$ gmake
/home/srb/SRB3_4_2/mySRB/src/alpha1.c:12723: undefined reference to `SQLAllocHandle'
alpha1.o(.text+0x296f6):/home/srb/SRB3_4_2/mySRB/src/alpha1.c:12724: undefined reference to `SQLSetEnvAttr'
alpha1.o(.text+0x29738):/home/srb/SRB3_4_2/mySRB/src/alpha1.c:12727: undefined reference to `SQLDrivers'
collect2: ld returned 1 exit status
gmake: *** [etd.cgi] Error 1
Thanks in advance.
Regards,
SYT
•
•
Join Date: May 2006
Location: ★ ijug.net ★
Posts: 929
Reputation:
Rep Power: 5
Solved Threads: 66
You need to link the sql libraries as well.
•
•
Join Date: May 2006
Location: ★ ijug.net ★
Posts: 929
Reputation:
Rep Power: 5
Solved Threads: 66
Open your makefile , in linker command add -l sql (check actual name of libsql.a)
Last edited by ithelp : Feb 25th, 2008 at 3:04 am.
![]() |
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the C Forum
- Previous Thread: very QUICK question ON casting . plz help :)
- Next Thread: Finding the MAX value from a set of five numbers.


Linear Mode