Demo version won't compile?

Just starting out? Need help? Post your questions and find answers here.
pbster
User
User
Posts: 16
Joined: Sat Jan 17, 2009 2:10 am

Demo version won't compile?

Post by pbster »

Resource error, even when attempting to compile any of the sample files included.

I've removed, redownloaded, re-installed (even into a different directory) - and it still does nothing but quit with a 'resource error'. Perhaps I'm doing it wrong?

Doing the simple first 'this will compile' from this page http://www.xs4all.nl/~bluez/datatalk/pure1.htm

It still faults to resource error. What am I missing?

win 2000 pro, 512mb ram.
pbster
User
User
Posts: 16
Joined: Sat Jan 17, 2009 2:10 am

Not even this will work with demo.

Post by pbster »

Code: Select all

OpenConsole() 
PrintN("hello world") 
Repeat 
  Delay(1) 
Until Inkey() <> ""
This also results in resource error.
User avatar
idle
Always Here
Always Here
Posts: 5933
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Post by idle »

That's no good. I wouldn't know why the demo isn't compiling, you may have to wait for the Pb development team to answer you.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Can you compile from the command line? Save the above in the "compilers" directory (inside the directory where purebasic is installed), then open cmd.exe, go to the same compilers directory, and type "purebasic yourfile.pb" (without the quotes).
pbster
User
User
Posts: 16
Joined: Sat Jan 17, 2009 2:10 am

Post by pbster »

pbcompiler test.pb

Code: Select all

Compiling test.pb
Loading external libraries...
Starting compilation...
6 lines processed.
Creating executable.
Error: Linker
Unknown error
pbster
User
User
Posts: 16
Joined: Sat Jan 17, 2009 2:10 am

Post by pbster »

content of test.pb

Code: Select all

OpenConsole() 
PrintN("hello world") 
Repeat 
  Delay(1) 
Until Inkey() <> ""

; IDE Options = PureBasic 4.30 (Windows - x86)
; CursorPosition = 5
; Folding = -
; EnableXP


Removed IDE options lines... attempted command line compilation, same result as above.
User avatar
idle
Always Here
Always Here
Posts: 5933
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Post by idle »

Only thing I could think of is maybe the problem is related to MSVCRT.dll
I don't think it ships with 2000. Should be in system32
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Can you post the ouput of echo %path%? And also make sure everything in the purebasic directory isn't write-protected.
pbster
User
User
Posts: 16
Joined: Sat Jan 17, 2009 2:10 am

Post by pbster »

Code: Select all

C:\Program Files\PureBasic1\Compilers>echo %path%
C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;I:\ZMYSQL\bin;C:\Program Files\QuickTime\QTSystem\
hmmm.
pbster
User
User
Posts: 16
Joined: Sat Jan 17, 2009 2:10 am

Post by pbster »

nothing is write protected.
and msvcrt.dll is in place under system32... as well as msvcrtXX.dll
User avatar
idle
Always Here
Always Here
Posts: 5933
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Post by idle »

sorry don't know what it could be.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

If you run polink.exe, does it say anything?
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

which demo did you download?
perhaps you chose the wrong one....?
oh... and have a nice day.
pbster
User
User
Posts: 16
Joined: Sat Jan 17, 2009 2:10 am

Post by pbster »

Code: Select all

C:\Program Files\PureBasic1\Compilers>polink
Pelles Linker, Version 5.00.1
Copyright (c) Pelle Orinius 1998-2008

Syntax:
POLINK [ { option | file | @commandfile } ... ]

Options:
/ALIGN:#
/ALLOWBIND[:NO]
/ALLOWISOLATION[:NO]
/ALTERNATENAME:symbol=symbol
/BASE:address
/DEBUG[:NO]
/DEBUGTYPE:{CV|COFF|BOTH}
/DEF:filename
/DEFAULTLIB:filename
/DELAY:{NOBIND|UNLOAD}
/DELAYLOAD:filename
/DLL
/DRIVER[:{UPONLY|WDM}]
/ENTRY:symbol
/EXPORT:symbol[=[module.]symbol][,@ordinal[,NONAME]][,DATA]
/FIXED[:NO]
/FORCE:MULTIPLE
/HEAP:reserve[,commit]
/IMPLIB:filename
/INCLUDE:symbol
/LARGEADDRESSAWARE[:NO]
/LIBPATH:path
/MACHINE:{AMD64|ARM|X64|X86}
/MANIFEST[:NO]
/MANIFESTDEPENDENCY:dependency
/MANIFESTFILE:filename
/MAP[:filename]
/MAPINFO:{EXPORTS|FIXUPS|LINES}
/MERGE:from=to
/NODEFAULTLIB
/NOENTRY
/NXCOMPAT[:NO]
/OPT:{REF|NOREF|WIN98|NOWIN98}
/OSVERSION:#[.##]
/OUT:filename
/RELEASE
/SAFESEH[:NO]
/SECTION:name,[E][R][W][S][D][K][P]
/STACK:reserve[,commit]
/STUB:filename
/SUBSYSTEM:{CONSOLE|NATIVE|WINDOWS|WINDOWSCE}[,#[.##]]
/SWAPRUN:{CD|NET}
/TSAWARE[:NO]
/VERBOSE
/VERSION:#[.##]
/WS:AGGRESSIVE

C:\Program Files\PureBasic1\Compilers>
Downloaded win32 version.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

Did you have the demo version and then install the registered version?

You may have to uninstall both and then reinstall 4.3

ALSO this is a copy of my compilers directory. Are all your files sizes the same?

Image

:D
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Post Reply