By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,734 Members | 880 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,734 IT Pros & Developers. It's quick & easy.

A problem in using public library

P: n/a
ɺ
Hello guys. I have a problem in using a public static library.
The library file name is libminipar.a and it was written in c++.

For using the public library, I first wrote test.c(and test.cpp) which
included following.
// test.c //////////////////////////////////////////
#include "ptree.h" //library header file

int main()
{
initialize_minipar(".:../data");
extract_features("Seoul is the Capital of Korea.");
return 0;
}

I complied as following.
g++ test.c -o test -I../include -L../lib -lminipar

And I met link error messages
/tmp/ccy1806F.o: In function `main':
/tmp/ccy1806F.o(.text+0xf): undefined reference to `initialize_minipar(char
const *)'
/tmp/ccy1806F.o(.text+0x1f): undefined reference to `extract_features(char
const *)'
collect2: ld returned 1 exit status

It is sure that the path of -I and -L is no problem.

All help much appreciated.

Sim Bo Jun.

Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
in comp.lang.c i read:
Hello guys. I have a problem in using a public static library.
The library file name is libminipar.a and it was written in c++.


comp.lang.c is the wrong venue.

--
a signature
Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.