Re: [Dev-C++] msvc resource script causing errors
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Jonathan A. <za...@gm...> - 2005-01-03 23:45:19
|
(I thought I'd sent this to the list, but instead accidentally sent it to just one user) 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 "#include "<afxres.h>"\r\n" When compiling everythings fine until here: windres.exe -i stage1_private.rc --input-format=rc -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. One thing I have not been able to find that might be useful is a thourough description on how DevCpp handles resource scripts and what it's conventions are. I'd be thrilled to have that figured out and be able to tell myself whether it was a simple difference between msvc generated resource scripts and what devcpp wants, or whether this is some issue with the compiler settings or something else that's currently beyond me. 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. > > ... > 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. > ... > > Make sure to uncomment the lines you commented out first. Then try changing the line: > #include "afxres.h" > > to > > #include <afxres.h> > > hope this helps some. > > ------------------------------------------------------- > 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 > |