RE: [Dev-C++] msvc resource script causing errors
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Guillermo G. <ggu...@ma...> - 2005-01-03 22:38:44
|
not much of a expert on these things, I am sure people on this list can = give you much better info. I commented on something that my limited knowledge knew was "wrong". -----Original Message----- From: Jonathan Anthony [mailto:za...@gm...] Sent: Monday, January 03, 2005 2:35 PM To: Guillermo Gutierrez Subject: Re: [Dev-C++] msvc resource script causing errors Interesting suggestion, there's two places in that file afxres.h is included, once at the top, and once further down in the file there's after #ifdef APSTUDIO_INVOKED what is that stuff anyway? I changed both to < > instead of double quotes. the first one (line 10) to #include <afxres.h> and the further one (not sure what line) to=20 "#include "<afxres.h>"\r\n" When compiling everythings fine until here: windres.exe -i stage1_private.rc --input-format=3Drc -o stage1_private.res -O coff In file included from stage1_private.rc:4: BaseCode.rc:10:21: afxres.h: No such file or directory c:\mingw\bin\windres.exe: BaseCode.rc:20: syntax error make.exe: *** [stage1_private.res] Error 1 Execution terminated Strange thing is that syntax error on line 20, I never changed anything anywhere near line 20, and now when I change the < > on those 2 includes back to quotes, that syntax error is still there. I reverted back using undo so it wasn't a typo. When I first tried this source code out, and the afxres.h file was shown as missing by the compiler I looked for it and found it in my Dev-Cpp\include path. Then I checked my compiler options and my c and c++ includes did not have any entries for dev, only for MinGW, and this file does not exist in MinGW's include directory. I added \Dev-Cpp\include to both the C and C++ include options, and put them at the top of those lists. However, I don't know much about compilers and how everything works.. is Dev-Cpp ignoring those entries because it is using the MinGW libs and includes only? I appreciate any education or documentation you can pass my way. I love to learn this stuff but it's pretty hard to find people in your neighborhood who you can learn from. Later Jonathan On Mon, 3 Jan 2005 11:16:02 -0800, Guillermo Gutierrez <ggu...@ma...> wrote: > Hi, not sure if this will help much but usually when quotes are used = for include statements instead of "<>"s it is because the file is in the = project folder. >=20 > ... > First the compiler will say that it can't find afxres.h, > which is plainly in devcpp's include directory. > ... > try switching the "" (quotes) for "<>"s and see what happens. > ... > If I comment this line, the next error reported will be on line 20, > the statement "LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US" > If I comment this, the next error will be on line 30. > ... >=20 > Make sure to uncomment the lines you commented out first. Then try = changing the line: > #include "afxres.h" >=20 > to >=20 > #include <afxres.h> >=20 > hope this helps some. >=20 > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |