|
From: Ioannis V. <no...@ho...> - 2002-04-05 02:07:25
|
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Stein
Nyg=E5rd
Sent: Thursday, April 04, 2002 9:23 PM
To: DevCpp
Subject: [Dev-C++] $_70 wierdness!
Hi guys!
=20
Anyone know what this means?
=20
f:\development\opengl\sengine v2.5\scenes.o(.text+0xcf):scenes.cpp:
undefined reference to `$_70::load(char *, char *)'
f:\development\opengl\sengine v2.5\scenes.o(.text+0x1e0):scenes.cpp:
undefined reference to `$_70::draw(bool, bool)'
f:\development\opengl\sengine v2.5\scenes.o(.text+0x277):scenes.cpp:
undefined reference to `$_70::free(void)'=20
=20
=20
No definitions provided for these functions.
=20
=20
And can someone please explain me what it is with headers? Although I've
been programming for several years, I'm still confused about what goes
in a *.h-file and what goes into a *.cpp.=20
=20
In .cpps you place the definitions of your interfaces and in .h the
declarations.
=20
e.g. assume a function:
=20
void do_something()
=20
=20
You place in the header file: void do_something();
=20
and in .cpp file the implementation:
=20
void do_something()
{
// ...
}
=20
Type definitions (enums, classes, structs, etc) go to header files.
=20
=20
=20
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
<http://www.noicys.cjb.net/>=20
* Alternative URL: http://run.to/noicys
|