Command Line Error Midl1004
Forum Visual C++ & C++ Programming Visual C++ Programming command line error MIDL1004 If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register or Login before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 4 of 4 Thread: command line error MIDL1004 Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode June 11th, 2001,12:21 PM #1 Laurent View Profile View Forum Posts Member Join Date Jan 1999 Location Grenoble Posts 101 command line error MIDL1004 Hello I try to compile an idl file and every time I have this error : Creating Type Library... Processing D:\Visilog\visilog\Visilog.idl midl : command line error MIDL1004 : cannot execute C preprocessor cl.exe Error executing midl.exe. Could you explain me the problem and a solution ? Reply With Quote June 11th, 2001,12:21 PM #2 laurent View Profile View Forum Posts Visit Homepage Member Join Date Jan 1999 Location Gif sur Yvette (France) Posts 94 command line error MIDL1004 Hello I try to compile an idl file and every time I have this error : Creating Type Library... Processing D:\Visilog\visilog\Visilog.idl midl : command line error MIDL1004 : cannot execute C preprocessor cl.exe Error executing midl.exe. Could you explain me the problem and a solution ? Reply With Quote February 19th, 2008,04:34 AM #3 harunmip View Profile View Forum Posts Junior Member Join Date Feb 2008 Posts 1 Re: command line error MIDL1004 Hello, I've the problems and I can not figure it out how to solve this. However, I still can manually compile the project. here what I do: 1) open your project directory and locate *.plg file. This is build log-file. 2) there is a line that look like this but with different path: Creating command line "midl.exe /nologo /D "NDEBUG" /tlb "Release/XPrint.tlb" /mktyplib203 /win32 "D:\xlink\workspace\GUI\XPrint\src\lib\XPrint.odl"" 3) open command prompt, change directory to your project directory 4) copy and paste that command 5) execute 6) build your project. Each time you rebuild or clean, you must do this again. Harun Reply With Quote June 23rd, 2009,09:21 AM #4 nasenmann View Profile View Forum Posts Junior Member Join Date Jul 2002 Location Aachen, Germany Posts 22 Re: command line error MIDL1004 I had the same problem. After ages of s
TOPIC_LOCKED_SHORT } 5 posts • Page 1 of 1 bkilgore Posts: 3Joined: March 22nd, 2005, 2:37 am Posted March 22nd, 2005, 2:43 am I'm trying to build the standalone firefox browser, and I thought I had set up everything correctly, but something must be off. Everything compiles fine for a while, but then I hit: Code: Select allmake[6]: Entering directory `/cygdrive/d/brandon/projects/firefox/obj-win32/embedding/browser/activex/src/control' found for "GET /viewtopic.php" VideoLAN Forum Home All times are UTC+02:00 Delete all board cookies The team Powered by phpBB Forum Software © phpBB Limited GZIP: On Output: 20>Creating Type Library... 20>Processing .\UnitConverter.idl 20>midl : command line error MIDL1004 : cannot execute C preprocessor cl.exe 20>Build log was saved at "file://v:\MysolutionFoler\MyProjectFoler\DebugU\BuildLog.htm" 20>UnitConverter - 1 error(s), 0 warning(s) When I Open VS2005 command prompt and run the commmands in BuildLog.htm file the all work fine. But why I got the compiler error when build by VS IDE? Please tell me if you have any suggestions? Thank you, . Prev by Date: Re: What is the fastest sustainable web service response time? Next by Date: Re: What is the fastest sustainable web service response time? Previous by thread: Re: Cannot execute C preprocessor cl.exe Next by thread: cannot execute C preprocessor cl.exe Index(es): Date Thread Flag as inappropriate (AWS) Windows Science Usenet ArchiveAboutPrivacyImprint www.tech-archive.net >Archive >VC >microsoft.public.vc.mfc >2010-02
/usr/bin/perl -I/cygdrive/d/brandon/projects/firefox/mozilla/config /cygdrive/d/brandon/projects/firefox/mozilla/config/build-list.pl http://forums.codeguru.com/showthread.php?137849-command-line-error-MIDL1004 ../../../../../config/final-link-libs mozctl
/cygdrive/d/brandon/projects/firefox/mozilla/build/cygwin-wrapper midl /Oicf /h MozillaControl.h /iid MozillaControl_i.c /cygdrive/d/brandon/projects/firefox/mozilla/embedding/browser/activex/src/control/MozillaControl.idl
Microsoft (R) MIDL Compiler Version 5.01.0164
Copyright (c) Microsoft Corp 1991-1997. All rights reserved.
Processing d:\brandon\projects\firefox\mozilla\embedding\browser\activex\src\control\MozillaControl.idl
midl : command line error MIDL1004 : cannot execute C preprocessor cl.exe
According to MDSN, this MIDL1004 error http://forums.mozillazine.org/viewtopic.php?t=238859 code means: MIDL1004: cannot execute C preprocessor The operating system reported an error when it tried to launch the preprocessor. With MS-DOS, this error can occur when the argument list exceeds 128 bytes. You can reduce the size of the argument list by using a response file. With this in mind, I tried moving the source tree from d:\brandon\projects\firefox to d:\firefox, but to no avail. I still get the same error. If anyone has any suggestions on what might be going wrong and how I might fix it I'd really love to hear it. Thanks. - Brandon Kilgore nrthomas Posts: 1988Joined: February 9th, 2003, 3:25 pm Posted March 22nd, 2005, 3:35 am Don't know how to fix this, but you can workaround it by adding these lines to your mozconfig: ac_add_options --disable-activex ac_add_options --disable-activex-scripting