Page 1 of 1

help I install PB and just get linker error

Posted: Wed Apr 01, 2009 12:40 am
by coder
I have been running PureBasic version 3.94 for a long time.
My computer is running windows XP

A while ago I tried to install PB version 4.20 and gave up quickly when I could compile and run anything, not even examples from the examples directory.
At the time I was getting a window with "unknown error" and I could see in the bottom window "linker error!"
No error code nothing.
I removed version 4.20 and went back to 3.94 no problem.

Now I saw that version 4.30 is available. i thought whatever the problem was with 4.20 must be fixed.

No
I de-install 3.94
Then I install 4.30
I go in the ide an open any example file from the examples folder and kaboom. The exact same thing.

Ok I de-install PB 4.30
I went in regedit
I found all key with purebasic in it and deleted them
restarted the computer.
install purebasic 4.30
get an example pb file in ide
compile/run
Kaboom
"unknown error"

I look in all the documentation from PB and found one place where there is a mention PB uses now polink.
From the console I compile keyboard.pb with option /COMMENTED to get the asm file.
I run polink on this file
Kaboom
"fatal error: invalid machine type in ...."

Obviously I am missing lots of other options
Anybody knows what options I need on the linker, or ran into this problem?
Am I missing a file from a previous version between 3.94 and 4.30 ?

Posted: Wed Apr 01, 2009 12:55 am
by freak
This appears to be an access rights problem. See here:
http://www.purebasic.fr/english/viewtopic.php?t=36449

Try installing in a different folder (maybe your documents folder) or try the compatibility mode as suggested in the above thread.
I have not been able to reproduce this problem so far, so i cannot tell you what exactly is causing it. Only a handful of people seem to have this problem though.

Posted: Wed Apr 01, 2009 2:57 pm
by coder
Thank you very much.

I copied the complete folder
c:/Program Files/PureBasic to
c:/Documents and Settings/<user name>/

and then I renamed
"c:/Documents and Settings/<user name>/PureBasic"
to
"c:/Documents and Settings/<user name>/PureBasic 430"

I deleted the PureBasic shortcut
and I went into "c:/Documents and Settings/<user name>/PureBasic 430" and right click on PureBasic.exe => send to => desktop to create a new shortcut

And it is working now.

In the mean time I had my brother download the purebasic 430 demo version on his computer and run it. He did the default install. He got the exact same error I did.

Is it possible that many people that downloaded the demo version, trying to evaluate it. got the same error and just decided not to bother with it, since the demo does not work? Maybe the relkease or at least the demo should be fixed.