Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: RBendo on October 06, 2009, 09:15:08 pm

Title: UNDEFINED REFERENCE TO ( ERROR )
Post by: RBendo on October 06, 2009, 09:15:08 pm
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 ).

Title: Re: UNDEFINED REFERENCE TO ( ERROR )
Post by: stahta01 on October 06, 2009, 09:29:21 pm
Quote
undefined reference

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.