Re: Error in VS2005
- From: "Drew" <drew.nospam.myers@xxxxxxxx>
- Date: Wed, 1 Mar 2006 11:37:34 -0600
"Victor Bazarov" <v.Abazarov@xxxxxxxxxxxx> wrote in message
news:evJgC6LPGHA.2040@xxxxxxxxxxxxxxxxxxxxxxx
Drew wrote:
I'm moving some code from VS6 to VS2005 and am getting an error:
error C2059: syntax error : 'string'
on line:
extern "C"
How to resolve this?
Are you compiling as C or as C++? What's on the preceding line?
Take a habit of posting enough code for us to copy-paste-and-compile
so we can at least try reproducing the behaviour you describe.
V
Victor,
I was attempting to compile as C++ via compiler switch /TP, but when then
project was upgraded from VS6 to VS2005 it marked the project file with /TP
but all the .c files with /TC. Must be a bug.
Thanks,
Drew
.
- References:
- Error in VS2005
- From: Drew
- Re: Error in VS2005
- From: Victor Bazarov
- Error in VS2005
- Prev by Date: Re: error C2276; passing &member function to _beginthreadex
- Next by Date: finding an access violation in msvcr71.dll (0xc0000005 at 0x0000fedc)
- Previous by thread: Re: Error in VS2005
- Next by thread: UNICODE to MBCS
- Index(es):
Relevant Pages
|