Author Topic: UNDEFINED REFERENCE TO ( ERROR )  (Read 3154 times)

Offline RBendo

  • Single posting newcomer
  • *
  • Posts: 7
UNDEFINED REFERENCE TO ( ERROR )
« 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 ).


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: UNDEFINED REFERENCE TO ( ERROR )
« Reply #1 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org