News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

POLINK: error: Symbol '_@Error_1' is multiply defined

Started by Grincheux, December 17, 2015, 03:47:14 AM

Previous topic - Next topic

Grincheux


Quote
POLINK: error: Symbol '_@Error_1' is multiply defined: 'PhR.obj' and 'PhR.obj'.
POLINK: error: Symbol '_@Exit' is multiply defined: 'PhR.obj' and 'PhR.obj'


When assembling with JWasm that's ok but errors while linking.
I thought that a label was local when it is defined into a PROC/ENDP statment?


How can I avoid this?

jj2007

The more interesting question is why you are linking twice the same object file. Check your linker command line...

TWell

Sometimes using those anonymous labels @@ and @F or @B are useful.

EDIT: similar error with polink.exe only with debug info, not with ms link.exe
Source compiled with ml.exe  10.
Building D3D9_WebCam.exe.
POLINK: error: Symbol 'charLP' is multiply defined: 'D3D9_WebCam.obj' and 'D3D9_WebCam.obj'.
*** Error code: 1 ***


Grincheux

If you use RadAsm V3 here is the command line for the linker :


Quote
/SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /OUT:$O $C $R


Remove the "$M"


jj2007

Quote from: Grincheux on December 17, 2015, 05:07:35 AM
JJ2007 happily you are there.

Merci, Philippe :icon14:
Happily there is always somebody awake here, 24h/24h. This is positive globalisation ;)