FBC Compiler error
FBC Compiler error
I got an error message "Aborting due to runtime error 12 ("segmentation violation" signal)" when I tried to compile something. It didn't give a line number or anything, it just says that. What does it mean? Is the code I'm trying to compile bringing up the error, or is the compiler itself having the error?
For any grievances posted above, I blame whoever is in charge . . .
- burger2227
- Veteran
- Posts: 2465
- Joined: Mon Aug 21, 2006 12:40 am
- Location: Pittsburgh, PA
No wonder FB sucks.
QB uses >=. FB uses -> ? That don't sound right 

Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
Re: No wonder FB sucks.
I used it like thisburger2227 wrote:QB uses >=. FB uses -> ? That don't sound right
Code: Select all
const packSize as integer = 5
type dog
dim age as integer
end type
dim pack(1 to packSize) as dog
dim oldest as dog ptr
'... blah blah blah, do stuff with dogs' ages
'Find oldest dog in pack
oldest = @pack(1)
for i as integer = 2 to packSize
'compare age
if oldest=>age < pack(i) then oldest = @pack(i)
next i
end
For any grievances posted above, I blame whoever is in charge . . .
@Clippy:
-> is the pointer dereference operator.
Like the period is used to access the parts of a type.
If you are accessing the points of a type ptr, then you use ->
-> is the pointer dereference operator.
Like the period is used to access the parts of a type.
If you are accessing the points of a type ptr, then you use ->
Code: Select all
Type test
a as integer
end type
dim variable as test
dim variable_ptr as test ptr
'@ means Address of
variable_ptr = @variable
variable.a = 4
print variable_ptr->a