Build Log ------- Build started: Project: firstplugin, Configuration: Release|Win32 ------- Command Lines This edition of Visual C++ does not support the optimizing compiler. Creating temporary file "c:\Documents and Settings\Administrator\Dokumenter\Visual Studio Projects\firstplugin\Release\RSP00009C.rsp" with contents [ /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WINDLL" /D "_MBCS" /FD /EHsc /MDd /GS /Fo"Release/" /Fd"Release/vc70.pdb" /W3 /c /Wp64 /Zi /TP /Od /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /D "_WINDLL" /Gm /EHsc /RTC1 /MDd /W3 /nologo /c /Wp64 /ZI /TP "\Documents and Settings\Administrator\Dokumenter\Modtagne filer\Sdk\amxplugin.cpp" "\Documents and Settings\Administrator\Dokumenter\Modtagne filer\HelloWorld\helloworld.cpp" ] Creating command line "cl.exe @"c:\Documents and Settings\Administrator\Dokumenter\Visual Studio Projects\firstplugin\Release\RSP00009C.rsp" /nologo" Creating temporary file "c:\Documents and Settings\Administrator\Dokumenter\Visual Studio Projects\firstplugin\Release\RSP00009D.rsp" with contents [ /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WINDLL" /D "_MBCS" /FD /EHsc /MDd /GS /Fo"Release/" /Fd"Release/vc70.pdb" /W3 /c /Wp64 /Zi /TC /Od /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /D "_WINDLL" /Gm /EHsc /RTC1 /MDd /W3 /nologo /c /Wp64 /ZI /TP "\Documents and Settings\Administrator\Dokumenter\Modtagne filer\Sdk\amx\getch.c" ] Creating command line "cl.exe @"c:\Documents and Settings\Administrator\Dokumenter\Visual Studio Projects\firstplugin\Release\RSP00009D.rsp" /nologo" Creating temporary file "c:\Documents and Settings\Administrator\Dokumenter\Visual Studio Projects\firstplugin\Release\RSP00009E.rsp" with contents [ /OUT:"Release/firstplugin.dll" /INCREMENTAL:NO /NOLOGO /DLL /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /MACHINE:X86 /MANIFEST:NO /MAP:"helloworld.map" kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ".\release\helloworld.obj" ".\release\getch.obj" ".\release\amxplugin.obj" ] Creating command line "link.exe @"c:\Documents and Settings\Administrator\Dokumenter\Visual Studio Projects\firstplugin\Release\RSP00009E.rsp"" Output Window Compiling... amxplugin.cpp helloworld.cpp Generating Code... Compiling... cl : Command line warning D4025 : overriding '/TC' with '/TP' getch.c Linking... LINK : warning LNK4044: unrecognized option '/MANIFEST:NO'; ignored LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specification Results Build log was saved at "file://c:\Documents and Settings\Administrator\Dokumenter\Visual Studio Projects\firstplugin\Release\BuildLog.htm" firstplugin - 0 error(s), 3 warning(s)
Originally Posted by PsYcHoGoD
Make sure the following functions are exported:
Supports Load Unload AmxLoad AmxUnload I know that error occurs when they are not exported, but could also be something else causes the error. |
Originally Posted by PsYcHoGoD
Make sure the following functions are exported:
Supports Load Unload AmxLoad AmxUnload I know that error occurs when they are not exported, but could also be something else causes the error. |
# Project: gang # Makefile created by Dev-C++ 4.9.9.2 CPP = g++.exe CC = gcc.exe WINDRES = windres.exe RES = gang_private.res OBJ = C:/Dev-Cpp/Templates/gang.o C:/Dev-Cpp/include/SDK/amxplugin.o $(RES) LINKOBJ = C:/Dev-Cpp/Templates/gang.o C:/Dev-Cpp/include/SDK/amxplugin.o $(RES) LIBS = -L"C:/Dev-Cpp/lib" --no-export-all-symbols --add-stdcall-alias INCS = -I"C:/Dev-Cpp/include" CXXINCS = -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" BIN = gang.dll CXXFLAGS = $(CXXINCS) -DBUILDING_DLL=1 CFLAGS = $(INCS) -DBUILDING_DLL=1 RM = rm -f .PHONY: all all-before all-after clean clean-custom all: all-before gang.dll all-after clean: clean-custom ${RM} $(OBJ) $(BIN) DLLWRAP=dllwrap.exe DEFFILE=libgang.def STATICLIB=libgang.a $(BIN): $(LINKOBJ) $(DLLWRAP) --output-def $(DEFFILE) --driver-name c++ --implib $(STATICLIB) $(LINKOBJ) $(LIBS) -o $(BIN) C:/Dev-Cpp/Templates/gang.o: C:/Dev-Cpp/Templates/gang.cpp $(CPP) -c C:/Dev-Cpp/Templates/gang.cpp -o C:/Dev-Cpp/Templates/gang.o $(CXXFLAGS) C:/Dev-Cpp/include/SDK/amxplugin.o: C:/Dev-Cpp/include/SDK/amxplugin.cpp $(CPP) -c C:/Dev-Cpp/include/SDK/amxplugin.cpp -o C:/Dev-Cpp/include/SDK/amxplugin.o $(CXXFLAGS) gang_private.res: gang_private.rc $(WINDRES) -i gang_private.rc --input-format=rc -o gang_private.res -O coff
#define MYEXPORT extern "C" __declspec(dllexport) MYEXPORT int MyFunctionIWantToExport(int bla) { return 1337; }
Originally Posted by !MaVe
You can do exports like this with mingw and that stuff:
Code:
#define MYEXPORT extern "C" __declspec(dllexport) MYEXPORT int MyFunctionIWantToExport(int bla) { return 1337; } |