|
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 - Exporting MAIN for an DLL (VST instrument)
Hello, I hope someone could help me out. I'm trying to compile my latest work with mars compiler. Is a VST Instrument. Basic, a DLL file with an EXPORT MAIN on the DEF file. The problem is that I'm getting an error during final LINK. (it compiles with no errors) link Main+VstSynthProc+VstSynthPar+VstSynthPresets+audioeffectx+AudioEffect+Chorus+DashMain+DelayFX+DelayL+Filter+LFO+Limiter+MidiNote+WvIn+ADSR,,,user32+kernel32,main/RC:resources/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved OPTLINK : Error 180: No Match Found for Export/ENTRY - : main OPTLINK : Warning 148: USE16/USE32 Mismatch : DGROUP C:\TEMP\MARRS\DM\BIN\..\lib\SNN.lib(constart) Error 83: Illegal frame on start address OPTLINK : Warning 174: 32-bit Segments Inappropriate for 16-bit Segmented output OPTLINK : Error 81: Cannot EXPORT : main Main.obj(Main) Error 35: Cannot Reach TARGET from FRAME at Relative 00026H from Segment _TEXT FRAME = Frame of Group FLAT 0000 TARGET = External Symbol ??2 YAPAXI Z (void *cdecl new(unsigned )) 12AB0H FIXUPP Type = 32-bit Conditional JMP --- errorlevel 4 Regards, WilliamK Nov 22 2002
What does your .def file look like? It should contain the lines: EXETYPE NT SUBSYSTEM WINDOWS (or SUBSYSTEM CONSOLE) Also, DLLs should not have a main() function, such will pull in the wrong startup code. You'll need a dllmain(). "WilliamK" <WilliamK_member pathlink.com> wrote in message news:arlrrj$tko$1 digitaldaemon.com...Hello, I hope someone could help me out. I'm trying to compile my latest Nov 22 2002
|