Page 1 of 1

[x86] [LINKER] Unknown error

Posted: Sat Jan 09, 2016 4:06 pm
by es_91
Image
"PureBasic - Linker error" / "Unknown error"

I don't know damn about why it happened, but even reinstallation of PureBasic 5.41 x86 does not allow me to compile or run anything.

All x86 installations on my PC refuse to compile! Tested with 5.31 and 5.41 - same error message.

5.00 x86 brings up this message instead:

Image
"PureBasic - Resource error" / "Unknown error"

Installations of 5.31 x64 and 5.24 LTS x64 work fine, however.

Before that error first came up i gave command (5.41 x86) to compile this:

Code: Select all

file$ = ProgramParameter (0)

file = OpenFile (#PB_Any, file$)

If file
  
  *memory = AllocateMemory (Lof (file))
  
  ReadData (file, *memory, Lof (file))
  
  string$ = PeekS (*memory, Lof (file))
  
  string$ = ReplaceString (string$, "EscapeString (", "HTTPRequest (#PB_HTTP_Get, ProgramFilename () + " + Chr (34) + ".xhp" + Chr (34) + ", ")
  string$ = ReplaceString (string$, ");", "), #Null)")
  
  FileSeek (file, 0)
  
  WriteData (file, @string$, Len (string$))
  
  TruncateFile (file)
  
  CloseFile (file)
  
  RunProgram (Trim (ProgramParameter (1), Chr (34)) + "Compilers\sbcompiler.exe", file$, "")
EndIf
; IDE Options = PureBasic 5.41 LTS (Windows - x86)
; CursorPosition = 26
; EnableUnicode
; EnableXP
; Executable = something.exe

Re: [x86] [LINKER] Unknown error

Posted: Fri Jan 29, 2016 11:47 am
by Fred
To be honnest, I don't know where to start to look at this bug. It can be anti-virus, or other software preventing correct file creation. The "unknown error" is from the linker (polink), so I don't have more info (it's not a PB error). If you can reproduce it, I could take a closer look.

Re: [x86] [LINKER] Unknown error

Posted: Mon Feb 01, 2016 8:51 pm
by es_91
Sorry i see no way for reproduction. I did not have any anti-virus software installed.