delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/21/13:34:26

From: "Innuendo" <eliobagg AT tin DOT it>
To: <djgpp AT delorie DOT com>
Subject: Other problem with TVision
Date: Sun, 21 Mar 1999 15:33:41 +0100
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1161
MIME-Version: 1.0
Message-Id: <19990321143649.LMCA27877.fep04-svc@nora0987>
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019