Link to home
Start Free TrialLog in
Avatar of Noero
Noero

asked on

Impossible to build with VS2008 because of errors on stdlib.h

Hello guys,

Hello!

I just openned a given c++ project on Visual Studio 2008 (it works on another computer), and when building, I get hundred errors on the header file stdlib.h.
I have no idea why this library is not ok because it's the standard one and I don't have change anything on code yet.
I am thinking about order in building but still, I don't know where to search in VS.

Could you please help me to fix that issue?

I hope you will be able to provide the information.

N.
Avatar of Zoppo
Zoppo
Flag of Germany image

Hi Noero,

could you post which errors you get? Do you have installed VisualStudio and/or SDK in different directories on the machines where it works? Maybe there are some directories set in the project settings of in the VisualStudio options.

ZOPPO
Avatar of Noero
Noero

ASKER

Hello,
It'as mainly about "undeclared errors" or "synatx C2065 , c2059
I tried to upload a screeshot, the first try was inefficient, hope this one will be OK;
capture.bmp
Hm - could you post a example line where such a ')' is missing? I can't see it from your screenshot ...

And are you sure you didn't accidentally change a header in the VisualStudio/SDK folders?
Avatar of Noero

ASKER

OK I emphase the line with the first error.
I don't think so because I just unziped it.
capture.bmp
Maybe you include something before stdlib.h which causes this problem. Could you post the order of your #includes in the CPP file where these errors first occur? If you have a stdafx.h in your project please post its contents too. Usually it's best to include all system headers before anything else.

Do you use any using namespace statements like i.e. using namespace std;. If so you should check you don't use this before anything else is included.
ASKER CERTIFIED SOLUTION
Avatar of sarabande
sarabande
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Noero

ASKER

Thank you guys for your help!


Brief and clear.