c++ - Linkage failure for generic stack template
- Edward A. Waugh (40/40) Oct 04 2006 The files attached below compiles but linkage fails:
The files attached below compiles but linkage fails: C:\Upload> dmc -cpp problem.cpp link problem,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved problem.obj(problem) Error 42: Symbol Undefined ??6 YAAAVostream AAV0 ABV? $stack H Z (ostream &cd ecl <<(ostream &,stack<int > const &)) --- errorlevel 1 Any help or suggestions are welcome. Thanks, Edward begin 644 problem.h M+R\ 26UP;&5M96YT(&$ 9V5N97)I8R!S=&%C:R!C;&%S<R!U<VEN9R!T96UP M('L-" T*("` ('!U8FQI8SH-" T*("` ('-T86-K*'-I>F5?="!S:7IE(#T M,3`I.PT*("` ('YS=&%C:R I.PT*("` (&9R:65N9"!O<W1R96%M("9O<&5R M/%0^.CIS=&%C:RAS:7IE7W0 <VEZ92D >PT*("` (&)A<V4 /2!N97< 5%MS M:7IE73L-"B` ("!T;W` /2!T:&ES+3YB87-E("T ,3L-"B` ("!S:7IE(#T M;VYS="!S=&%C:SQ4/B`F<RD >PT*("` (&9O<B`H5"`J<'1R(#T <RYT;W` M.R!P='( /CT <RYB87-E(#L <'1R+2TI('L-"B` ("` ("` ;W, /#P *G!T ` end begin 644 problem.cpp M;'5D92`\:6]S=')E86TN:#X-"B\O($=E="!M>2!S=&%C:R!C;&%S<RX-"B-I M=&%C:SQI;G0^(&9I<G-T.PT*("` (&-O=70 /#P /971U<FX ,#L-" T*?0T* ` end
Oct 04 2006