Click to See Complete Forum and Search --> : -multiple compiler option


sbt
September 13th, 2004, 09:43 PM
Hi
I have a huge project and I am trying to port it from pSos to new operating system called Integrity. While porting I am getting a very funny error. The Integrity C++ compiler complains about lot of multiple definitions.

When I tried to search and debug I found that when I am cimpiling a single .cpp file, another .cpp file is getting compiled automatically along with it. The second .cpp file is nowhere included in the first one. Does anybody have any idea why compiler tries to compile another .cpp file when we ask it to compile one in a project?????

Right now for time being I am getting rid of this problem by giving compiler optoin -multiple.

Please helppppppppppppppppppppp

Thanks in advance

jlatham
September 16th, 2004, 01:41 PM
I have used Integrity for about a year now. I have seen lots of problems with the Multi tools for Integrity. Stay away from it if you can. Maybe their support staff will be of assistance... :thumbd:

Anyway, you can see what the build file really is stating (rather than what it displays in the GUI) by hitting control-e while you have it selected. You may find some obscure stuff in there that isn't necessary. You may want to make sure that you've correctly selected if it's a C or C++ file in the build options and make sure that you aren't actually including a ".cpp" file instead of an h file, because I believe it will try to compile the included .cpp. Weird stuff.