September 12, 2002
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


September 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
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
>
>