LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-09-2008, 11:20 AM   #1
shifter
Member
 
Registered: May 2006
Distribution: Slackware, DragonFly
Posts: 233

Rep: Reputation: 30
problem with compilation/linking


Hi all, my compilation fails, when I add follows row

#include <sqlite3ext.h>

the output of compilation is:

bash-3.1# gcc -lsqlite3 labsinf.c -o inf
labsinf.c: In function 'soundex':
labsinf.c:17: error: 'sqlite3_api' undeclared (first
use in this function)
labsinf.c:17: error: (Each undeclared identifier is
reported only once
labsinf.c:17: error: for each function it appears in.)

Where is the problem?

Thanks,
savio
 
Old 04-09-2008, 12:10 PM   #2
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
The problem is within the first 17 lines of labsinf.c, which we need in order to figure out what it is. Also, the library should come after all of the sources on the compilation line so that it's searched after the missing definitions in the sources are found.
ta0kira

Last edited by ta0kira; 04-09-2008 at 12:11 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linking error during cross compilation with ucibc libraries raklo Linux - Kernel 0 03-25-2007 11:48 PM
Module compilation/linking in linux 2.6 linux_3008 Linux - Kernel 0 10-05-2006 01:41 AM
Problem in using both load time linking and runtime linking durgaprasad_j Linux - General 0 08-01-2006 03:49 AM
Problem linking f77 and f90 object files Make problem (I think) TheBrick Programming 1 05-22-2006 06:17 AM
ld linking problem captain-mythos Linux - Software 1 06-20-2004 08:46 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration