Use CALL povars32.bat, instead just povars32.bat.
If you wish to compile the project from the other IDE, set the command to
Code:
C:\WINDOWS\system32\cmd.exe /c call "C:\Program Files\PellesC\Bin\povars32.bat" && pomake.exe -f "%FILENAMENOEXT%.ppj"
// should work from hand
Sapero, Yes this would also work. But I am trying to make permanent (System) [Start/Control Panel/Performance and Maintenence/System/Advanced tab/Environmental Variables....... Then modify System Variables.
....... and of course you always have to re-boot for your changes to take place. You verify what your current system variables are by issuing command at the command prompt: Set Path, or Set Include etc. (and you can prove to yourself that changes you made have not taken effect yet (re-boot, and re-check and you see they have then taken effect).
Timo:If you make own batch-file for it like pomake.bat:
Code:
@echo off
rem pomake.bat
SET PellesCDir=C:\Program Files\PellesC
C:\Program Files\PellesC\bin\pomake.exe -f %1
pause
Does it work then ?
==========================
Ok, you want me to take the above .bat file, place it in the same folder as my .ppj file.
Open a console window in that directory, and issue this command:
(using my .ppj file as the argument).
Pomake.bat "Determine String Lenght uses TCHAR hr integer on return GOLD.ppj"
(I have not run povars32.bat)
No Timo, this does not work.To Double check, I re-wrote your batch file:
@echo off
rem pomake.bat
SET PellesCDir=C:\Program Files\PellesC
"C:\Program Files\PellesC\bin\pomake.exe" -f "Determine String Lenght uses TCHAR hr integer on return GOLD.ppj"
pause
and ran the above, but it did not work.
Now Timo, you have this (below), but I am aftaid I do not know what you want me to try !
pomake.exe use PellesCDir enviroment variable for that $(PellesCDir)
INCLUDE = $(PellesCDir)\Include\Win;$(PellesCDir)\Include#
LIB = $(PellesCDir)\Lib\Win;$(PellesCDir)\Lib#
If that work insert that enviroment variable to your system
// // ~ • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •
Ok, here is the Povar32.bat file that works magic:@echo off
set PellesCDir=C:\Program Files\PellesC
rem
echo Setting 32-bit environment for Pelles C...
rem
set PATH=%PellesCDir%\Bin;%PATH%
set INCLUDE=%PellesCDir%\Include;%PellesCDir%\Include\Win;%INCLUDE%
set LIB=%PellesCDir%\Lib;%PellesCDir%\Lib\Win;%LIB%
// // ~ • • • • • • • •
Ok all we are really doing is adding C:\Program Files\PellesC\Bin to the beginning of the System Path environmental variable temporarily, while this console window session is open. [%PATH% on the end means you are adding this new path
to the beginning of the variable string.]
Also, you are temporarily creating/adding the INCLUDE, and the LIB variables and PelleC paths.
Originally in my System variables I had no INCLUDE, or LIB variables so I created them and added the above paths.
// // ~ • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •
// // ~ • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •
OK, I have beat this subject to death !I have now proved that two out of three of my System Variables are OK.
I found out that if you open a console window, then key in "set path", the output is the path as exists (System plus any current changes).
Keep it open and run povars32.bat, again key in "set path", you will see that the bat file added the "C:\Program Files\PellesC\bin" to the front end of the Path string.
(same thing with the set include and the set lib commands)
// // ~ • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •
Here is my conclusion: Either something is goofy with my XP operating system OR pomake.exe somehow checks to see if
"C:\Program Files\PellesC\bin" was just added as a temporary path environmental variable. What makes me think this? Because in my System variables I have everything correct. I have "C:\Program Files\PellesC\bin" (no quotes) at the beginning of my Path variable (just like povars32.bat will do) if you run povars32.bat I see it added (temporarily) another (a second) "C:\Program Files\PellesC\bin" to the front of my path variable.
Ok. Here is what I did ..... Edit povarse32.bat and comment out all but:
set PellesCDir=C:\Program Files\PellesC
rem
echo Setting 32-bit environment for Pelles C...
rem
set PATH=%PellesCDir%\Bin;%PATH%
Open Console window in my folder with my .ppj file issue this command:
"C:\Program Files\PellesC\Bin\pomake.exe" -f "Determine String Lenght uses TCHAR hr integer on return GOLD.ppj"
It will not build.Keep window open, run
the new povars32.bat, then again:
"C:\Program Files\PellesC\Bin\pomake.exe" -f "Determine String Lenght uses TCHAR hr integer on return GOLD.ppj"
Guess what it builds.So my going to System and adding the Include variable and paths and creating the LIB variable and adding the paths WORKED.The only thing I am doing with the new povars32.bat file is adding another "C:\Program Files\PellesC\bin" to the front of the PATH variable string.So I am at a dead end. I will have to run my new, small povars32.bat prior to running pomake.exe every time.It sure seems silly, but (assuming my system is not goofed up) if pomake.exe is checking to see if "C:\Program Files\PellesC\bin" was just added temporarily then I will just have to do it.
Bizarre.Ok that's it for me on this subject ! Unless someday someone can figure it out or prove that my system must be goofed up.
Thanks guys.