A problem in using public library

½

½Éº¸ÁØ

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.
 
T

those who know me have no need of my name

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top