Windows 10 - PB10 - Linker error

Just starting out? Need help? Post your questions and find answers here.
wawavoun
User
User
Posts: 38
Joined: Fri Oct 18, 2019 4:49 pm

Windows 10 - PB10 - Linker error

Post by wawavoun »

Hi All,

Under W10 I have problem with 6.10 LTS final release of Purebasic.

Using the Compile/Run command compiling is going well but just after I got a <<Purebasic - Linker error>> saying "error:Accès refusé".

I already see a problem with the linker on beta 9 but the message was not the same.
After an upgrade (see https://www.purebasic.fr/english/viewto ... 36#p618036) everything was okay.

What can be the cause ?

I have MSYS2 installed (and I need it) and consequently some mingw/gcc stuffs are in the path. Could this be the problem ?

The problem is the same with the antiv activated or not but purebasic.exe and purebasic directory are always excluded from real time scan.

Thanks for any help and regards.
Philippe
User avatar
mk-soft
Always Here
Always Here
Posts: 6202
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Windows 10 - PB10 - Linker error

Post by mk-soft »

Add Purebasic folder to the exceptions in the virus scanner.
Create PB compiler option Excutable in the source directory
Last edited by mk-soft on Sat Apr 06, 2024 10:18 am, edited 1 time in total.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Windows 10 - PB10 - Linker error

Post by Fred »

Probably an antivirus error
hoerbie
Enthusiast
Enthusiast
Posts: 136
Joined: Fri Dec 06, 2013 11:57 am
Location: DE/BY/MUC

Re: Windows 10 - PB10 - Linker error

Post by hoerbie »

@Fred: I'm having the same problems on Win 11 with PB 6.10 (mostly x86), for example I get:
Virus: Gen:Variant.Jaik.221663 (Engine A)
Datei: ~60944C88.TMP
Verzeichnis: C:\Users\<myusername>\AppData\Local\Temp
Prozess: polink.exe
This happens nearly every time when I'm working on my own libs that I use in a lot of my programs, and sometimes when I compile the programs.
I'm used to whitelisting the directorys where PB is installed and where the sources are located, and I always compile everything in the source directory.
But the above named general temp directory, that polink.exe uses for something is too risky to whitelist, because it is used by a lot of software.
For now I take care that no internet software is open and disable the antivirus for my compile times, but this is no permanent solution, and sending every of the false positive tmp files to the antivirus company would be to much work.

Maybe as feature request: Is there any possibility (for the next update) to setup an own temp directory for PBs linking process, that can be whitelisted then with low risk?
Quin
Addict
Addict
Posts: 1122
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: Windows 10 - PB10 - Linker error

Post by Quin »

Oh no, now PB DLL's are getting flagged too? :cry:
It looks like the specific virus yours is detecting is a super specific portion of other malware, see here: https://www.trendmicro.com/vinfo/us/thr ... .VSNTHM22/
Oh how I hate anti-virus...
One thing that may help, if you're using Windows Security/Windows Defender, turn off cloud-delivered protection. Keep realtime on, that's actually fairly effective, but cloud-delivered has given me nothing but false positives :(
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Windows 10 - PB10 - Linker error

Post by Fred »

You can try the 'create executable in source directory' option so the exe won't be created in temp
hoerbie
Enthusiast
Enthusiast
Posts: 136
Joined: Fri Dec 06, 2013 11:57 am
Location: DE/BY/MUC

Re: Windows 10 - PB10 - Linker error

Post by hoerbie »

@Fred: as I wrote in my last post, the setting "create executable in source dir" is active, nevertheless polink in 6.10 x86 does something in systems general temp directory, and this triggers antivirus tool, in my case German GData Internet Security (that uses their own engine plus Bitdefender)
Image
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Windows 10 - PB10 - Linker error

Post by Fred »

May be we can create a temp dir in the %APPDATA%\PureBasic folder to see if it's better. You can probably test by setting the TEMP var to something else in a terminal and launching the IDE from there
Axolotl
Enthusiast
Enthusiast
Posts: 798
Joined: Wed Dec 31, 2008 3:36 pm

Re: Windows 10 - PB10 - Linker error

Post by Axolotl »

If it is really an option to change the path for the output, I would like to recall my request from earlier.
adjustable "compile to folder" path
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
User avatar
charvista
Addict
Addict
Posts: 949
Joined: Tue Sep 23, 2008 11:38 pm
Location: Belgium

Re: Windows 10 - PB10 - Linker error

Post by charvista »

+1
Yes, same for me. I also had issues with Windows Antivirus.
Adding the Windows path directory as exclusion is not advisable because many programs use this path.
And I don't want to have .exe files in the source directory either because it is not their location. (French: ils n'ont pas leur place là)
So, a programmer-specified directory is the ideal solution. :wink:
- Windows 11 Home 64-bit
- PureBasic 6.10 LTS (x64)
- 64 Gb RAM
- 13th Gen Intel(R) Core(TM) i9-13900K 3.00 GHz
- 5K monitor with DPI @ 200%
User avatar
skywalk
Addict
Addict
Posts: 4210
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Windows 10 - PB10 - Linker error

Post by skywalk »

It is not desirable to overwrite a working app.exe while in development.
The current way of storing to the source code folder is acceptable.
Once you have confidence in your new app.exe, you can store it to your release folder.

I have not had issues after whitelisting my dev folder and creating exe's in source folder.

I do have issues and cannot whitelist any "user temp" or "ProgramData" folders.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Post Reply