G
Gernot Frisch
Hi,
I have a set of functions that I enclousured into a namespace due to
some conflicts.
// XYZ.h
//------
namespace CC
{
void foo();
double dfoo=0;
}
// XYZ.cpp
//--------
namespace CC
{
void foo() {dfoo=1;}
}
using namepsace CC;
int APIENTRY WinMAIN(..)
{
dfoo = 2;
foo();
}
without the namespace everything was OK, but now my GCC says:
...\lib/libc.a(winmain.o)(.text+0x14): undefined reference to `main'
Can you help?
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com
I have a set of functions that I enclousured into a namespace due to
some conflicts.
// XYZ.h
//------
namespace CC
{
void foo();
double dfoo=0;
}
// XYZ.cpp
//--------
namespace CC
{
void foo() {dfoo=1;}
}
using namepsace CC;
int APIENTRY WinMAIN(..)
{
dfoo = 2;
foo();
}
without the namespace everything was OK, but now my GCC says:
...\lib/libc.a(winmain.o)(.text+0x14): undefined reference to `main'
Can you help?
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com