[so] [Tema3][win]Weird linker error dll

matei pavaluca mateipavaluca at yahoo.com
Wed Apr 24 00:13:02 EEST 2013


Ceva asemanator s-a rezolvat dupa ce am inclus la compilare ambele surse
(si vmsim.c si common_win.c, adica ce ai facut tu din ce inteleg).

Verifica faptul ca ai sters fisierele obiect inainte sa refaci compilarea :)

Matei



________________________________
 From: Daniel CIOCÎRLAN <daniel.ciocirlan1607 at cti.pub.ro>
To: "so at cursuri.cs.pub.ro" <so at cursuri.cs.pub.ro> 
Sent: Tuesday, April 23, 2013 11:59 PM
Subject: [so] [Tema3][win]Weird linker error dll
 


 
Salut,

Primesc eroare de linkeditare la dll si nu inteleg de ce:

Creating library libvmsim.lib and object libvmsim.exp
*vmsim_win.obj* : error LNK2019: unresolved external symbol _w_set_exception_handler referenced in function _vmsim_init
*vmsim_win.obj* : error LNK2019: unresolved external symbol _w_get_previous_exception_handler referenced in function _vmsim_cleanup

libvmsim.dll : fatal error LNK1120: 2 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.EXE"' : return code '0x460'
Stop.

Am inclus headerele necesare. Ba chiar am dat si cu niste copieri in vmsim_win.c si tot unresolved symbols. Makefile-ul respecta dependentele:
sursa1 -> obj1
sursa2 -> obj2
obj1 + obj2 -> (link) -> lib + dll

Nu stiu unde gresesc. Are cineva vreo idee?

_______________________________________________
http://ocw.cs.pub.ro/courses/so/info/lista-discutii
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20130423/af77d16a/attachment.html>


More information about the so mailing list