Compiler options not noticed when compiling from includes...

Working on new editor enhancements?
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Compiler options not noticed when compiling from includes...

Post by AND51 »

Hello!

I've got a main file that contains several include files (XIncludeFile). I set the main file to Threadsafe, XP-Skin, etc. and I enabled a subsystem named "UserLibThreadsafe" from gnozal to make his libs working. When I want to compile my whole project from an includefile, an error occurs: "POLINK error, unresolved external symbol: PB_StringBasePosition". I enabled the compiler option called "main source code" to advise the IDE to compile the main file insetad of the include file. Everything was working fine until I enabled ThreadSafe+Lib Subsystem in the main file.

Fix this error. Thx!
PB 4.30

Code: Select all

onErrorGoto(?Fred)
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

any includefiles can have it's own properties, this is a feature, nothing to fix :wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Post by AND51 »

But why is every other field disabled when having "main source code:" activated?

The IDE does not grant you the chance to set the same options as the main file, because the include takes the same options as the main file.

If the field would not be disabled during "main source code"-activation, I would set the options manually.

So it's a bug.
PB 4.30

Code: Select all

onErrorGoto(?Fred)
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

sry, i have never used the mainsource option.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

It shouldn't happen, but it happens once in a while. A similar problem is reported in the bugs forum.
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Post by AND51 »

Okay, I'm awaiting the PB-Team's answer! :)

@ TS-Soft: Not schlimm :wink:
PB 4.30

Code: Select all

onErrorGoto(?Fred)
Post Reply