Path: chuka.playstation.co.uk!news From: "Craig Graham" Newsgroups: scea.yaroze.programming.codewarrior Subject: Re: Linker errors (Please help!) Date: 10 Jul 1998 07:30:59 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 39 Message-ID: <01bdabd4$66ef09c0$f30b0a0a@Angela1.intelligent-group.com> References: <01bdabb2$1916e0a0$4cb5dccf@mannynaj> NNTP-Posting-Host: d3-s40-205-telehouse.mistral.co.uk X-Newsreader: Microsoft Internet News 4.70.1155 Manny Najera wrote in article <01bdabb2$1916e0a0$4cb5dccf@mannynaj>... > I haven't used CW in a while, but when I tried to compile some C++ code, I > got this error: > > Link Error : undefined: ‘GetPadBuf(volatile unsigned char**,volatile > unsigned char**)’ Referenced from ‘main’ in main.c > > GetPadBuf is the only lib function that I use in this particular program. > I know there must be something that I left out, but I can't figure out what > it is. I created a new project, then typed a few lines of code into > main.c. What could be the problem? Make sure you've put the usual #if defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus) extern "C" { #endif // All the library function defs go here #if defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus) } #endif declaration around the function defs in libps.h > Manny Najera Craig.