[Dev-C++] doubts about creating static libs and using them
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <dei...@ya...> - 2003-07-16 16:06:51
|
Hi.
I´ve created the lib called libTest, wich contains
the following:
#include <iostream.h>
class Test
{
public:
Test();
};
Test::Test()
{
cout << " this is a test";
}
the file was well-compiled and generated a file called
libTest.a, wich I can add to the linker and use in
other program, but I have no Idea about how make a
reference of the methods.
I tried
#include <iostream>
#include <stdlib.h>
using namespace std;
class Test;
class Teste * test1;
extern Teste::Teste();
int main(int argc, char *argv[])
{
teste1 = new Teste(); // <- the compiler points me
an error here ... :(
system("PAUSE");
return 0;
}
so, what´s goind wrong?
someone can help me?
thanks anyway,
__________________________________________________________________
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de
|