Hi Georg, the necessary flags are already included in the flext makefiles, the respective targets are disabled though. You just have to edit makefile.pd-msvc and delete the # character in the all: line. Be sure not to have STK or sndobjs defined in config-pd-msvc.txt because currently those cause clashes when linking. Then, you should be fine with build-pd-msvc.bat
best greetings, Thomas
----- Original Message ----- From: "Georg Holzmann" grhPD@gmx.at To: pd-dev@iem.at Sent: Saturday, March 20, 2004 1:43 PM Subject: [PD-dev] build flext as a dynamic library problems
Hallo!
I try to build flext as a dynamic library (because the stand-alone
externals
are really big) and use flext0.4.5 and MSVC6 on WinXP.
I've tried to add UFLAGS=/DFLEXT_SHARED in config-pd-msvc, but I got a lot of errors:
flbase.cpp source\flbase.cpp(40) : warning C4273: 'public: static struct flext_hdr * flext_ obj_shared::m_holder' : inconsistent dll linkage. dllexport assumed. source\flbase.cpp(40) : error C2491: 'flext_obj_shared::m_holder' : definition o f dllimport static data member not allowed source\flbase.cpp(41) : warning C4273: 'public: static struct _symbol
const
- co
nst flext_obj_shared::m_holdname' : inconsistent dll linkage. dllexport assumed (... and so on...) source\flbase.cpp(54) : warning C4273:
'flext_obj_shared::flext_obj_shared'
: in consistent dll linkage. dllexport assumed. source\flbase.cpp(71) : warning C4273:
'flext_obj_shared::~flext_obj_shared'
: i nconsistent dll linkage. dllexport assumed. source\flbase.cpp(76) : warning C4273: 'Init' : inconsistent dll linkage. dllex port assumed. source\flbase.cpp(77) : warning C4273: 'Finalize' : inconsistent dll linkage. d llexport assumed. source\flbase.cpp(78) : warning C4273: 'Exit' : inconsistent dll linkage. dllex port assumed. source\flbase.cpp(81) : warning C4273: 'DefineHelp' : inconsistent dll linkage. dllexport assumed. source\flbase.cpp(99) : warning C4273: 'GetParamSym' : inconsistent dll linkage. dllexport assumed. NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' : return co de '0x2' Stop.
Do I need the additional Processor Pack for MSVC6 to compile flext as a dynamic library? Or is the compiler flag wrong?
Thanks for any advice, LG Georg
-- +++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz
+++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev