Help.
I've just managed to compile a class.
When I try to implement this class in a program I get
C:\\WINDOWS\\TEMP\\ccJwtegb.o(.text+0x2a):test1.cpp: undefined reference to
`CString::CString(char const *)' error. I have no idea what this means, Im
guessing it has something to do with the linker but other than that Im lost.
You probably left out an important include. It would be a lot easier to help if you included the source, and the compiler command you used.
.o files contains object code, which is fragments of code that the computer understands directly. In this stage however no linking with external libraries has been done, and all addresses allocated to variables and functions are relative to the object code.
The next process of making a fully executable file, is linking the object code so that the addresses are now relative to the full program, and functions/variables declared in external libraries are available to the program.
regards.,
Jakob Justsen