This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Matching gcc's configuration with Kdevelop's

Tags: None
(comma "," separated)
Cove
Registered Member
Posts
1
Karma
0
OS
I'm trying to compile a piece of C code that uses the Libredwg libraries.

I can call the library functions by including 'dwg.h':
Code: Select all
 #include "dwg.h"


If I reference a funtion
Code: Select all
error = dwg_read_file (filename_in, &dwg);
I get no errors from KDevelop.

However, when I compile the code with gcc, I get ther following errors:
Code: Select all
dave@Tuffy:/opt/libredwg/examples$ gcc -o ldwg load_dwg.c
/usr/bin/ld: /tmp/cc3rVjKS.o: in function `load_dwg':
load_dwg.c:(.text+0x586): undefined reference to `dwg_read_file'
/usr/bin/ld: load_dwg.c:(.text+0x75f): undefined reference to `dwg_free'
collect2: error: ld returned 1 exit status


The Gnu Compiler clearly cannot refference the function, although it would appear that KDevelop does.

Is there a way to apply the way that KDevelop is configured to the Gnu compiler?

Or, alternatively, is it possible to get KDevelop to compile the code?


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell