Hi, I am trying to build the CVS head using makefile.vc and VS 2005. BUILD = debug UNICODE = 1 SHARED = 1 WX_SHARED = 1 WX_MONOLITHIC = 1
The build fails as below:cl /c /nologo /TP /Fovcmswud_dll\wxbindcore_dll_wxcore_wxlcore.obj /MDd /DWIN32 /I..\..\..\modules\wxbind\setup /DWXUSINGDLL /D_UNICODE /D__WXDEBUG__ /D__WXMSW__ /Ic:\wxWidgets-2.8.6\lib\vc_dll\mswud /Ic:\wxWidgets-2.8.6\include /Od /Zi /D_DEBUG /Fd..\..\..\lib\vc_dll\wxlua_msw28ud_wxbindcore.pdb /I..\..\..\modules /I.\..\..\.. /I..\..\..\modules\lua\include /Ic:\wxWidgets-2.8.6\contrib\include /DWXMAKINGDLL_WXBINDCORE /GR /EHsc /Yu"wx/wxprec.h" /Fp"vcmswud_dll\wxprec_wxbindcore_dll.pch" ..\..\wxbind\src\wxcore_wxl core.cpp wxcore_wxlcore.cpp C:\wxLua\modules\wxbind/include/wxcore_bind.h(754) : error C2370: 'g_wxluatype_wxLuaPrintout' : redefinition; different storage class
Does anyone know what is going wrong? Thanks, Les
# ========================================================================= # This makefile was generated by # Bakefile 0.2.3 (http://www.bakefile.org) # Do not modify, all changes will be overwritten! # ========================================================================= # ------------------------------------------------------------------------- # These are configurable options: # ------------------------------------------------------------------------- # C compiler CC = cl # C++ compiler CXX = cl # Standard flags for CC CFLAGS = # Standard flags for C++ CXXFLAGS = # Standard preprocessor flags (common for CC and CXX) CPPFLAGS = # Standard linker flags LDFLAGS = # Builds in debug mode [debug,release] BUILD = debug # Builds in Unicode mode [0,1] # 1 - Unicode UNICODE = 1 # Builds in shared mode [0,1] # 1 - DLL SHARED = 1 # Use DLL build of wx library? [0,1] # 0 - Static # 1 - DLL WX_SHARED = 1 # Version of the wx library to build against. WX_VERSION = 28 # Use monolithic build of wxWidgets? [0,1] # 0 - Multilib # 1 - Monolithic WX_MONOLITHIC = 1 # The directory where wxWidgets library is installed WX_DIR = $(WXWIN) # Should the wxLua applications be compiled ? [0,1] USE_APPS = 1 # Should wxLua use the system-wide Lua library ? [0,1] USE_SYSTEM_LUA = 0 # The path to the Lua library LUA_DIR = ..\..\..\modules\lua # This is an advanced option. Handle with care. # Version of C runtime library to use. You can change this to # static if SHARED=0, but it is highly recommended to not do # it if SHARED=1 unless you know what you are doing. [dynamic,static] RUNTIME_LIBS = dynamic # Do the wxLua bindings for the wxAdv lib need to be compiled ? [0,1] USE_WXBINDADV = 1 # Do the wxLua bindings for the wxAUI lib need to be compiled ? [0,1] USE_WXBINDAUI = 1 # Do the wxLua bindings for the wxBase lib need to be compiled ? [0,1] USE_WXBINDBASE = 1 # Do the wxLua bindings for the wxCore lib need to be compiled ? [0,1] USE_WXBINDCORE = 1 # Do the wxLua bindings for the wxGL lib need to be compiled ? [0,1] USE_WXBINDGL = 1 # Do the wxLua bindings for the wxHTML lib need to be compiled ? [0,1] USE_WXBINDHTML = 1 # Do the wxLua bindings for the wxMedia lib need to be compiled ? [0,1] USE_WXBINDMEDIA = 1 # Do the wxLua bindings for the wxNet lib need to be compiled ? [0,1] USE_WXBINDNET = 1 # Do the wxLua bindings for the wxRichText lib need to be compiled ? [0,1] USE_WXBINDRICHTEXT = 0 # Do the wxLua bindings for wxSTC need to be compiled ? [0,1] USE_WXBINDSTC = 1 # Do the wxLua bindings for wxXML need to be compiled ? [0,1] USE_WXBINDXML = 1 # Do the wxLua bindings for wxXRC need to be compiled ? [0,1] USE_WXBINDXRC = 1 # Does the wxLua debug support need to be compiled ? [0,1] USE_WXLUADEBUG = 1 # Does the wxLua debug socket support need to be compiled ? [0,1] USE_WXLUASOCKET = 1 # Compile the lua module ? [0,1] USE_LUAMODULE = 1 # Compile the wxLua app ? [0,1] USE_WXLUAAPP = 1 # Compile the wxLuaCan app ? [0,1] USE_WXLUACANAPP = 1 # The path to the wxStEdit component (meaningful only when USE_WXLUAEDITAPP==1) WXSTEDIT_DIR = C:\WXSTEDIT # Compile the wxLuaEditor app ? [0,1] USE_WXLUAEDITAPP = 0 # Compile the wxLuaFreeze app ? [0,1] USE_WXLUAFREEZEAPP = 1 # ------------------------------------------------------------------------- # Do not modify the rest of this file! # ------------------------------------------------------------------------- ### Variables: ### MAKEARGS = CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \ CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" BUILD="$(BUILD)" \ UNICODE="$(UNICODE)" SHARED="$(SHARED)" WX_SHARED="$(WX_SHARED)" \ WX_VERSION="$(WX_VERSION)" WX_MONOLITHIC="$(WX_MONOLITHIC)" \ WX_DIR="$(WX_DIR)" USE_APPS="$(USE_APPS)" \ USE_SYSTEM_LUA="$(USE_SYSTEM_LUA)" LUA_DIR="$(LUA_DIR)" \ RUNTIME_LIBS="$(RUNTIME_LIBS)" THREADING="$(THREADING)" \ USE_WXBINDADV="$(USE_WXBINDADV)" USE_WXBINDAUI="$(USE_WXBINDAUI)" \ USE_WXBINDBASE="$(USE_WXBINDBASE)" USE_WXBINDCORE="$(USE_WXBINDCORE)" \ USE_WXBINDGL="$(USE_WXBINDGL)" USE_WXBINDHTML="$(USE_WXBINDHTML)" \ USE_WXBINDMEDIA="$(USE_WXBINDMEDIA)" USE_WXBINDNET="$(USE_WXBINDNET)" \ USE_WXBINDRICHTEXT="$(USE_WXBINDRICHTEXT)" \ USE_WXBINDSTC="$(USE_WXBINDSTC)" USE_WXBINDXML="$(USE_WXBINDXML)" \ USE_WXBINDXRC="$(USE_WXBINDXRC)" USE_WXLUADEBUG="$(USE_WXLUADEBUG)" \ USE_WXLUASOCKET="$(USE_WXLUASOCKET)" USE_LUAMODULE="$(USE_LUAMODULE)" \ USE_WXLUAAPP="$(USE_WXLUAAPP)" USE_WXLUACANAPP="$(USE_WXLUACANAPP)" \ WXSTEDIT_DIR="$(WXSTEDIT_DIR)" USE_WXLUAEDITAPP="$(USE_WXLUAEDITAPP)" \ USE_WXLUAFREEZEAPP="$(USE_WXLUAFREEZEAPP)" ### Conditionally set variables: ### !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1" WXLIBPOSTFIX = ud !endif !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0" WXLIBPOSTFIX = d !endif !if "$(BUILD)" == "release" && "$(UNICODE)" == "1" WXLIBPOSTFIX = u !endif !if "$(WX_SHARED)" == "0" WXLIBPATH = \lib\vc_lib !endif !if "$(WX_SHARED)" == "1" WXLIBPATH = \lib\vc_dll !endif !if "$(SHARED)" == "0" _BUILDDIR_SHARED_SUFFIX = !endif !if "$(SHARED)" == "1" _BUILDDIR_SHARED_SUFFIX = _dll !endif !if "$(USE_APPS)" == "1" __apps___depname = sub_apps !endif all: vcmsw$(WXLIBPOSTFIX)$(_BUILDDIR_SHARED_SUFFIX) vcmsw$(WXLIBPOSTFIX)$(_BUILDDIR_SHARED_SUFFIX): -if not exist vcmsw$(WXLIBPOSTFIX)$(_BUILDDIR_SHARED_SUFFIX) mkdir vcmsw$(WXLIBPOSTFIX)$(_BUILDDIR_SHARED_SUFFIX) ### Targets: ### all: test_for_selected_wxbuild sub_modules $(__apps___depname) clean: -if exist vcmsw$(WXLIBPOSTFIX)$(_BUILDDIR_SHARED_SUFFIX)\*.obj del vcmsw$(WXLIBPOSTFIX)$(_BUILDDIR_SHARED_SUFFIX)\*.obj -if exist vcmsw$(WXLIBPOSTFIX)$(_BUILDDIR_SHARED_SUFFIX)\*.res del vcmsw$(WXLIBPOSTFIX)$(_BUILDDIR_SHARED_SUFFIX)\*.res -if exist vcmsw$(WXLIBPOSTFIX)$(_BUILDDIR_SHARED_SUFFIX)\*.pch del vcmsw$(WXLIBPOSTFIX)$(_BUILDDIR_SHARED_SUFFIX)\*.pch cd ..\..\modules\build\msw $(MAKE) -f makefile.vc $(MAKEARGS) clean cd "$(MAKEDIR)" cd ..\..\apps\build\msw $(MAKE) -f makefile.vc $(MAKEARGS) clean cd "$(MAKEDIR)" test_for_selected_wxbuild: @if not exist $(WX_DIR)$(WXLIBPATH)\msw$(WXLIBPOSTFIX)\wx\setup.h \ echo ---------------------------------------------------------------------------- @if not exist $(WX_DIR)$(WXLIBPATH)\msw$(WXLIBPOSTFIX)\wx\setup.h \ echo The selected wxWidgets build is not available! @if not exist $(WX_DIR)$(WXLIBPATH)\msw$(WXLIBPOSTFIX)\wx\setup.h \ echo Please use the options prefixed with WX_ to select another wxWidgets build. @if not exist $(WX_DIR)$(WXLIBPATH)\msw$(WXLIBPOSTFIX)\wx\setup.h \ echo ---------------------------------------------------------------------------- @if not exist $(WX_DIR)$(WXLIBPATH)\msw$(WXLIBPOSTFIX)\wx\setup.h \ exit 1 sub_modules: cd ..\..\modules\build\msw $(MAKE) -f makefile.vc $(MAKEARGS) cd "$(MAKEDIR)" !if "$(USE_APPS)" == "1" sub_apps: cd ..\..\apps\build\msw $(MAKE) -f makefile.vc $(MAKEARGS) cd "$(MAKEDIR)" !endif docs: @echo ============================================= @echo Creating wxLua documentation using doxygen... @echo ============================================= cd ../..\docs doxygen doxygen.cfg compress: @echo ============================================= @echo Compressing wxLua binaries (requires UPX)... @echo ============================================= cd ..\..\bin upx -9 --force *.exe cd ..\build\msw !if "$(SHARED)" == "1" && "$(WX_SHARED)" == "0" !error Cannot build a SHARED version of wxLua (SHARED is 1) against a static version of wxWidgets (WX_SHARED is 0) ! You can only do the opposite (STATIC build of wxLua against SHARED build of wxWidgets) !endif
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users