Command Line Error D2004
given to CL as standard error. It is therefore not subject to simple redirection from the Command Prompt, e.g., for capture to a file. Circumstances The cited command-line option requires an argument but was interpreted as having been given none. For CL version 13.00.9466, the following are the options that can be given on the CL command line but which cause error D2004 if given without an argument: /AI, /B1, /B1_5, /B2, /Bl, /Bp1, /Bp2, /Bpl, /Bpx, /Bx, /D, /d1, /d1_5, /d2, /F, /FI, /FU, /H, /I, /MP, /nl, /o, /Tc, /To, /Tp, /U, /V, /vd, /W, /w1, /w2, /w3, /w4, /wd, /we, /wo and /Zm Due to a coding oversight, a /U with no argument is cited as /D in the message text. There exists some scope for subtlety in how an option can be given with no argument. Refer especially to the general syntax of CL options for details of the common parsing of command-line tokens as concerns options and arguments. The following paragraphs summarise, with examples, two cases that seem at least possible in real-world use. Some options do not permit their argument to begin with a switch character (i.e., a hyphen or forward slash). If the command-line token that starts such an option continues with a switch character, then the continuation is ignored, the option is regarded as having no argument, and error D2004 occurs. For example, whether the command cl test.cpp /F-1 is plausible in trying -1 as shorthand for “the largest possible” value is never decided: the attempt is rejected not as having an argument that is in any way invalid but as having no argument. (As to the plausibility, retry but with the /F and the -1 separated and enclosed in quotes.) Some options can be given as the whole of one command-line token yet take their argument from the next. This helps with readability at the command line and eases the construction in makefiles, e.g., by sparing concern for whether pasting of macros introduces white space. However, the next command-line token must come from the same command-line source, including that each line of a command file counts separately. For example, the command cl test.cpp @test.txt is fine when the command file contains the one line /I ..\inc with or without white space after the /I, but terminates with error D2004 if the command file is the slightly different /I ..\inc since an option on one line of a command file cannot carry to the next. Documentation Status The product documentation seems not to mention error D2004, perhaps thinking that the error’s explanation is self-evident from the message text. This page was created on 2nd May 2006 and was last
My Threads and Posts My Posts My Threads Steam Game Discussions # - C D - G H - L M - P Q - S T - Z Publisher / Developer Console Game Discussions Go to Page... Thread Tools Display Modes 10-06-2012, 06:27 PM #1 lucasp3000 Join Date: Mar 2011 Reputation: 0 Posts: 53 Command line error D2004 Hi everybody, I was compiling the mod when suddenly i've got this error: cl : Command line error D2004 : '/MP' requires an argument i've searched all over the internet and i didnt found anything about it (about the /MP i finded everything related to /I) Thanks, Lucas. http://www.geoffchappell.com/studies/msvc/cl/cl/errors/d2004.htm lucasp3000 View Public Profile Search User Find More Posts by lucasp3000 Find Threads by lucasp3000 10-07-2012, 09:17 AM #2 lucasp3000 Join Date: Mar 2011 Reputation: 0 Posts: 53 please i really need help lucasp3000 View Public Profile Search User Find More Posts by lucasp3000 Find Threads by lucasp3000 10-07-2012, 04:00 PM #3 lucasp3000 Join Date: Mar 2011 Reputation: 0 Posts: 53 bump, please help me! lucasp3000 View http://forums.steampowered.com/forums/showthread.php?t=2961684 Public Profile Search User Find More Posts by lucasp3000 Find Threads by lucasp3000 10-08-2012, 04:51 AM #4 Liam Join Date: Jul 2012 Reputation: 12 Posts: 80 Slander: First of all, bumping this thread three times in a few hours will not help you at all! Be patient, because we are not online 24/7. Furthermore I claim that you are not yet experienced with either Visual Studio and/or C++ and that's the reason why you could not resolve your issue. It could be, that I am wrong, however if I am not, I suggest you to stick to normal C++ and to learn how the compiler works together with Visual Studio rather than just trying to execute one of the biggest projects available to you! Solution: I do not have the time nor have I the desire to pan you, so here is a possible solution. Right click on the Client Episodic project in VS and choose All Configurations at the top left corner. Then open the Properties Pages. Navigate to Configuration Properties -> C/C++ -> All Options and setup Multi-processor Compilation to either No or Yes (/MP). Next time the MSDN documentation will help you! Liam View Public Profile Search User Find More Posts by Liam Find Threads by Liam Steam Users' Forums > Steam Tool Dis
van GoogleInloggenVerborgen veldenZoeken naar groepen of berichten
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev centers Retired content Samples We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. C/C++ Building Reference C/C++ Build Errors Command-Line Errors D8000 Through D9999 Command-Line Errors D8000 Through D9999 Command-Line Error D8004 Command-Line Error D8004 Command-Line Error D8004 Command-Line Error D8000 Command-Line Error D8003 Command-Line Error D8004 Command-Line Error D8016 Command-Line Error D8018 Command-Line Error D8021 Command-Line Error D8022 Command-Line Error D8027 Command-Line Error D8029 Command-Line Error D8030 Command-Line Error D8034 Command-Line Error D8035 Command-Line Error D8036 Command-Line Error D8037 Command-Line Error D8039 Command-Line Error D8042 Command-Line Error D8045 Command-Line Error D8046 Command-Line Warning D9000 Command-Line Warning D9002 Command-Line Warning D9007 Command-Line Warning D9014 Command-Line Warning D9015 Command-Line Warning D9021 Command-Line Warning D9024 Command-Line Warning D9025 Command-Line Warning D9026 Command-Line Warning D9027 Command-Line Warning D9028 Command-Line Warning D9029 Command-Line Warning D9032 Command-Line Warning D9035 Command-Line Warning D9036 Command-Line Warning D9038 Command-Line Warning D9040 Command-Line Warning D9041 Command-Line Warning D9042 Command-Line Warning D9043 Command-Line Warning D9044 TOC Collapse the table of content Expand the table of content This documentation is archived and is not being maintained. This documentation is archived and is not being maintained. This documentation is archived and is not being maintained. Command-Line Error D8004 Visual Studio 2005 Error Message '/option' requires an argument A command line option that requires an argument was not passed one. To remedy the error, specify an appropriate argument for the option. Example The following command line example generates error D8004: Copy cl /FU /LD filename.cpp To fix the error in the above