Mail Archives: djgpp/2001/08/18/11:15:11
Hello,
I used djgpp to code in c for a while.
Now i switch to c++.
I can compile fine with a command line like:
gxx *.cpp -o foo.exe
My problem:
While reading to the libgpp section in info I see
some interesting classes like String and Regex.
But I can't compile with.
_String.h and _Regex.h are in the lang/cxx
directory. Is this normal ?
As an example the file foo.cpp:
#include <iostream.h>
#include <_Regex.h>
int main ( void )
{
Regex r("[a-z]");
return 0;
}
compiled with:
gxx -Wall foo.cpp -o foo.exe
give me:
undefined reference to `Regex::Regex(char const *, int, int, char const *)'
undefined reference to `Regex::~Regex(void)'
undefined reference to `Regex::~Regex(void)'
I think I've made some mistakes in the install but
can't figure out wich ones.
Could somebody help me ?
TIA
--
Xavier
Sorry for my bad english
- Raw text -