Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

#include and code size Issues ?

Status
Not open for further replies.

willy113

Programmer
Apr 27, 2004
33
US
Procomm+ Rep,

After making several code modifications to an exisiting Procomm+ Aspect working compiled program, I now get a lot of invalid variables and expression compliation errors on code that I know was working and has not been touched in months or years ?
If I move around my #include files, I can make the errors move around to other variables and fix ones before which makes me suspicious, that I have hit some limitation within Procomm+ ??

- Is there any code size limitations within Procomm+ ?
- Can I have up to 10 .inc, .c, .h, .cpp, .hpp include modules in a *.was file in any order ?
- I do have variable declared in all of the #include files and moving these around seems to chanage the compliation results as well ?
- Should I have all of my variable declarations in one #include and located in a ceratin location in the *.was file ??

- Help !! My project is on hold till I can code & compile again, and it seems as if I need some changes done in my project files and structure to satisify the Procomm+ complier ?

Best Regards,

Bill Lusche
Sr. Development Engineer
 
Hi Knob,

I just verified that they are all errors, actually > 20, since it appears Procomm+ can't find the variables contained in other #includes.
I also already have the /F option turned on and have had it for some time now from earlier issues.

An interesting experiment, is that on the first error message about an invalid variable, I simply copied it from another #include and make a duplicate copy to the code include module that the error complained about, and re-complied and this error message went away ??
- Surprised me, since usally, that gives a duplicate varaible declared error message ??
- Does this give you a better clue as to what is happening ?

Any suggestions ??

Best Regards,

Bill Lusche
Sr. Development Engineer
 
Unfortunately it doesn't really help, since I would probably need to see the code to offer a suggestion.

Do you have all of the #include statements at the beginning of the script? If not, you might give that a try. Anywhere you can minimize the number of files as well, I would try to do so.

I took a quick look at the ASPECT help file and did not see any mention of limitations on the number of .inc files you can use.

 
Hi Knob,

Thanks for the help buddy !!!

I reduced the number of .inc files and grouped all of the
diferent type variables together in one file. (globals, inc, .h, .c, #defines, etc.)

I also noticed that my complier option /F was OFF, so I turned it back on. I think this was due to re-installing Procomm+ some months back.

Now everything works OK.....

Best Regards,

Bill Lusche
Sr. Development Engineer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top