User forums > Using Code::Blocks
UNDEFINED REFERENCE TO ( ERROR )
(1/1)
RBendo:
Hi, i don't know english very well, sorry
I've a problem with a small program by me writed, It's a template class, after the compile time, in linking time
Codeblocks tell me:
s - source\PROGETTI\GCL\GCL_TESTER.CPP | 14 | undefined reference to `GCL::IOFile<GCL::Void0, GCL::Void1,
| GCL::Void2, GCL::Void3>::IOFile()'
obj\Debug\GCL_TESTER.o | In function `_ZN3GCL6IOFileINS_5Void0ENS_5Void1ENS_5Void2ENS_5Void3EElsEh':
(unsigned char)]+0x3b) | undefined reference to `GCL::IOFile<GCL::Void0, GCL::Void1, GCL::Void2,
| GCL::Void3>::Write (unsigned char, unsigned short, char*)'|
I don't know how to solve this problem, anybody can help me? ( Sorry for english too ).
stahta01:
--- Quote ---undefined reference
--- End quote ---
The above message normally means you failed to add an needed library to the list.
Please turn on Full Compiler Logging and post it in a site that support the library or a beginning programming site.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
Tim S.
Navigation
[0] Message Index
Go to full version