|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++.windows.32-bits - DLL link errors
hi. i'm trying to compile a dll written in msvc6. now i'm getting some errors : 1) first of all, my exports wont work. function header : SOCKET __stdcall accept(SOCKET s,sockaddr* addr,int* addrlen) def file : EXPORTS accept 1 errors : OPTLINK : Error 180: No Match Found for Export/ENTRY - : accept [...] OPTLINK : Error 81: Cannot EXPORT : accept 2) some stack frame errors as well : OPTLINK : Warning 148: USE16/USE32 Mismatch : DGROUP c:\stuff\dm\lib\snn.lib(dllstart) Error 83: Illegal frame on start address OPTLINK : Warning 174: 32-bit Segments Inappropriate for 16-bit Segmented output [...] ws_funcs.obj(ws_funcs) Error 35: Cannot Reach TARGET from FRAME at Relative 00029H from Segment _TEXT FRAME = Frame of Group FLAT 0000 TARGET = External Symbol ??2 YAPAXI Z (void *cdecl new(unsigned )) 01DF8H FIXUPP Type = 32-bit Conditional JMP compilerflags : -c -cpp -mn -WD -ofilename thx DarkYoda Sep 12 2002
What's in your .def (module definition file) file? "DarkYoda" <DarkYoda_member pathlink.com> wrote in message news:alq23b$o8h$1 digitaldaemon.com...hi. i'm trying to compile a dll written in msvc6. now i'm getting some errors : 1) first of all, my exports wont work. function header : SOCKET __stdcall accept(SOCKET s,sockaddr* addr,int* addrlen) def file : EXPORTS accept 1 errors : OPTLINK : Error 180: No Match Found for Export/ENTRY - : accept [...] OPTLINK : Error 81: Cannot EXPORT : accept 2) some stack frame errors as well : OPTLINK : Warning 148: USE16/USE32 Mismatch : DGROUP c:\stuff\dm\lib\snn.lib(dllstart) Error 83: Illegal frame on start address OPTLINK : Warning 174: 32-bit Segments Inappropriate for 16-bit Segmented Sep 12 2002
|