User forums > Help

Very odd Visual C7.1 compilation error

(1/3) > >>

jdg:
I imported a VC7.1 project file and I get the following message

cl : Command line error D2004 : '/W' requires an argument

Nothing appears in the compiler switch dialog box except /MT so I edited the cbp file and deleted all /W switches. However the message persists. It takes about 30 seconds to decide to tell me too. I have cleaned and rebuilt with zero effect.

I am using the latest stable release. as per the homepage.

killerbot:
could you try it out with a nightly build, see this forum for download links.

Ifthe problem still persists, try making your project smaller and smaller and then maybe you can post it here.

jdg:
Actually before I check with a newer version, I've now managed to get the full command line using the 'compiler logging' and i see that the /W switch is there. Is there a way to remove it?

killerbot:
check if it has not showed up in the other options in the compiler settings.
But really upgrade to a nightly ;-)

jmccay:
   I do suggest setting up a nightly build version.  It is worlds better.  It's been a while since I looked at RC2, but I have a couple of suggestings.

   First, did you look in both the Project & Compiler settings (i.e. the global compiler setting and the project build options)?  I can't remember if RC2 has  these, but I felt it was worth mentioning.

   As for the error, it's not really that odd, /W does reqiure an argument (for VC++ 2005: /Wall,  /W1,  /W2,  /W3,  /W4,  /WL,  /Wp64,  /WX).  My guess is that you have it set somewhere (maybe by default).

jmccay

Navigation

[0] Message Index

[#] Next page

Go to full version