gcc test
VANDEMAN, MIKE (SBCSI)
mv2371@sbc.com
Sat Jul 26 15:04:00 GMT 2003
Can I ask a dumb question? How do I compile & link this test? I must be
doing something wrong.
tst.cpp:
#include <stdio.h>
#include "blackbox.h"
int main()
{
printf("Hello, ");
Mike();
printf("Hello, ");
Michael();
};
blackbox.h:
void Mike();
void Michael();
class BlackBox
{
public:
void Mike();
void Michael();
};
blackbox.cpp:
#include <stdio.h>
class BlackBox
{
public:
void Mike()
{
printf("Mike\n");
};
void Michael()
{
printf("Michael\n");
}
};
Mike Vandeman
925-901-7270
Mike Vandeman
925-901-7270
More information about the Gcc-help
mailing list