IDE works - Compiler doesn't
Posted: Sun Oct 26, 2025 6:51 am
If compile my code in the IDE it works fine but if i use pbcompiler I get the following message:-
Error: Assembler
purebasic.asm [119]:
extrn SetCurrentDirectoryA
processed: extrn SetCurrentDirectoryA
error: symbol already defined.
..
that's a windows call (SetCurrentDirectoryA)
..
is there some sort of switch I am missing on the compiler ??
[EDIT] I just noticed. If I run the compiler with the -c option (produce a commented asm output [purebasic.asm]) then I also get a PureBasic.exe that seems to run fine ???
Cheers
Roger
Error: Assembler
purebasic.asm [119]:
extrn SetCurrentDirectoryA
processed: extrn SetCurrentDirectoryA
error: symbol already defined.
..
that's a windows call (SetCurrentDirectoryA)
..
is there some sort of switch I am missing on the compiler ??
[EDIT] I just noticed. If I run the compiler with the -c option (produce a commented asm output [purebasic.asm]) then I also get a PureBasic.exe that seems to run fine ???
Cheers
Roger