Compiler Error

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by UserBob.

I am trying to define a structure and make a new list.

The problem is that when I compile the code, I get a message saying "Can't create the PureBasic.exe file (already running?)"

The code is

Structure code
rawcode.s
instr.w[5]
EndStructure

Structure robot
name.s
;code.code
max_shield.w
max_dam.w
max_energy.w
EndStructure

NewList robots.robot()

If I comment out the NewList line, it compiles fine. If I uncomment, I get the same message.

Any suggestions?

BG
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Paul.

What version of PB are you using... cause it works fine here with PB3.1

I know there was a documented bug in older versions of PB when calling NewList but not using any commands with it (like AddElement)
Post Reply