Mail Archives: djgpp/1999/03/21/13:34:26
i've downloaded the library but i can't compile anything.
when i try to compile eg:
>gcc tvexamp.cc -otvexamp.exe -ltv -lintl -lio
the compiler says:
>c:\djgpp\swap\cccaopvh(.text+0x208):tvexamp.cc: undefined reference to
>'__ti12TApplication'
>c:\djgpp\swap\cccaopvh(.text+0x225):tvexamp.cc: undefined reference to
>'__tf12TApplication'
what's wrong?
This is the program:
tvexamp.cc
#define Uses_TApplication
#include <tv.h>
class TMyApp : public TApplication
{
public:
TMyApp();
};
TMyApp::TMyApp() :
TProgInit( &TMyApp::initStatusLine,
&TMyApp::initMenuBar,
&TMyApp::initDeskTop
)
{
}
int main()
{
TMyApp myApp;
myApp.run();
return 0;
}
Thanks in advance for your kind helping.
- Raw text -