½
½Éº¸ÁØ
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.
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.