[Dev-C++] How to avoid <macro or recursion too deep> message
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Santiago P. C. <San...@yd...> - 2002-03-26 09:44:26
|
Hi to *, I'm trying to do 'some_kind_of_port' (I'm not so good programmer to be sure of achiveing that, but I must try ;oD) of a Linux app to Windoze, but I'm finding a lot of errors like this one: D:/path/to/include/folder/include_file.h: macro or `#include' recursion too deep I know this error uses to appear when invoking g++ with '-traditional' flag, but this is not the case, here is my command line: g++ -mconsole -mthreads -shared -c D:\usr\ports\unix\config.cxx -I"D:\usr\ports\include" -I"D:\usr\libs\include" -L"D:\usr\ports\lib" -L"D:\usr\libs\lib" AFAIK this should be solved by using the following structure on all include files: #idnfdef __LIBRARY_NAME__FILENAME_H__ #define __LIBRARY_NAME__FILENAME_H__ ... File contents #endif But, due to the fact that I'm using 'external' libs (like PWLib) it is not possible to modify all include files (everytime a new version of the library is released) to keep them using this structure (and I also think this is not the solution). I'm relatively new to MinGW and Dev-C++ so, any hints on where should I look at? Thanx, Santy -------------------------------------------------------------------------------------- This message and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. No confidentiality or privilege is waived or lost by any wrong transmission. If you have received this message in error, please immediately destroy it and kindly notify the sender by reply email. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Opinions, conclusions and other information in this message that do not relate to the official business of People Communications S.A. shall be understood as neither given nor endorsed by it. -------------------------------------------------------------------------------------- |