It is possible to have the Compile and Run feature to generate the executable in the same folder as the source code? This can help with the POLINK error in Vista if it were to be created inside the Compiler folder.
PB wrote:> It is possible to have the Compile and Run feature to generate the
> executable in the same folder as the source code?
Yes, it's in the Prefs.
Hmmm... Where in Preferences? When I click Compile/Run, the exe is always created in C:\Program Files\PureBasic\Compilers\PureBasicN.exe. Like If my source is D:\MYCODE\SAMPLE.pb, then clicking Compile/Run should create D:\MYCODE\SAMPLE.exe.
Not sure if this is it.. I think it's in Editor > Defaults > Create temporary executable in source directory. Maybe you have to restart PB for it to take effect, and the exe will be removed after you close the source.
It doesn't seem to work in the Prefs where mskuma says, but if you go to the
Compiler menu for your app, and select Compiler Options, and the Compile/Run
tab, and select it there, then yes, the exe is created in the source folder.
That's what I thought initially, but the pref works if you restart PB. Of course it also works immediately when you specify it directly in the compile options for the source you're working on.