Page 1 of 1

Compiler doesn't change in IDE

Posted: Tue Aug 20, 2024 4:39 am
by jacdelad
Hi,
I have a problem when processing a file which is not part of a project. I have PB 6.11 installed (x86 and x64) and added all the compilers into my x64-IDE. Now, when I run a program like

Code: Select all

Debug Bool(#PB_Compiler_Processor=#PB_Processor_x64)
Debug Bool(#PB_Compiler_Processor=#PB_Processor_x86)
and change the compiler afterwards, the compiler does not change. I'm stuck with the x86 compiler right now, no matter which x64 compiler I choose in the settings.

Does anyone else have this problem?

Edit: I found something: If I open the file in a different text editor, I see the compiler is fixed in the extra data at the end of the file. How do I prevent this?

Re: Compiler doesn't change in IDE

Posted: Tue Aug 20, 2024 5:44 am
by PeDe
jacdelad wrote: Tue Aug 20, 2024 4:39 am Edit: I found something: If I open the file in a different text editor, I see the compiler is fixed in the extra data at the end of the file. How do I prevent this?
In the 'Preferences' under 'Editor', there is the combination list 'Save Settings for'. I use 'A common file project.cfg for every directory'.

Peter

Re: Compiler doesn't change in IDE

Posted: Tue Aug 20, 2024 1:17 pm
by jacdelad
Oh, I'll try that! Thanks for the hint.

Re: Compiler doesn't change in IDE

Posted: Tue Aug 20, 2024 1:53 pm
by HeX0R
It shouldn't matter where the IDE stores the settings, mine is also doing that at the end of the source codes.
I guess you changed the compiler at the wrong place?
If you change it in preferences/Compiler/defaults => it will not influence the one bond to your source code.
If you change it in Compiler/Compiler Options (Use compiler) => it will be bond to your source code, stored either at the end of it, or in an extra file.

Re: Compiler doesn't change in IDE

Posted: Tue Aug 20, 2024 3:26 pm
by jacdelad
Oh ok. I'll try that later. Thanks! It seems a bit confusing to me. I thought there were two settings, one within a pbp-file and one for the rest.

Re: Compiler doesn't change in IDE

Posted: Tue Aug 20, 2024 10:24 pm
by jacdelad
Ok, so I tried it and finally found "Compiler" -> "Compiler options" in the menu. I didn't know that, but now it somehow does not really make sense (or does it?). Why to have 2 places to set a compiler? Plus, how do I know whether my file has the compiler information stored in it or not??

Also, could a mod please move thie topic to the IDE subforum? It surely fits better there.

Re: Compiler doesn't change in IDE

Posted: Wed Aug 21, 2024 9:59 am
by HeX0R
To me it makes perfect sense.
Preferences/Compiler/defaults => is your DEFAULT compiler (when starting a new code file)
You only have to set that once, usually.

And when you start compiling, you can swap compilers by Compiler/Compiler Options Menu.

It was always like this, later projects were added to the IDE and made things more comfortable.

Re: Compiler doesn't change in IDE

Posted: Wed Aug 21, 2024 3:11 pm
by jacdelad
When you say it that way, I understand. Seems like it just has to arrive in my head.