Problem using combination of compiler-switches

Windows specific questions.
BasicJan
Posts: 46
Joined: Aug 30, 2005 20:09
Location: Netherlands

Problem using combination of compiler-switches

Postby BasicJan » Sep 04, 2006 17:38

As I use RESUME-statements, the -exx compiler-switch is required.

Using this compiler-switch alone works fine. Using the switch together with a different switch causes troubles;

fbc -exx -s GUI <file-list>
results in:
C:\..\bin\win32\ld.exe: invalid subsystem type GUI


fbc -w -exx <file-list>
results in:
<FILE>.BAS(646) : error 55: Illegal without the -ex option, found: 'RESUME'

RESUME NEXT
^
Antoni
Posts: 1393
Joined: May 27, 2005 15:40
Location: Barcelona, Spain

Postby Antoni » Sep 04, 2006 17:52

As far I know, the command line options are case sernsitive, so the target switch should be -s gui.
The -w switch is taking the next switch as its argument. It may be a bug or the wiki may be wrong in saying -w's argument may be omitted....
BasicJan
Posts: 46
Joined: Aug 30, 2005 20:09
Location: Netherlands

Postby BasicJan » Sep 04, 2006 20:28

Thanks for your reaction.

The -s switch-value should indeed be gui instead of GUI.

The Wiki suggests the -w switch-value is optional (0 as default), but it is propably is not when the -w switch is followed by more parameters.
I just added 0 and now it works fine.

Return to “Windows”

Who is online

Users browsing this forum: Google [Bot] and 8 guests