Issue Information
-
#008404
-
0 - None Assigned
-
Invalid
Issue Confirmations
-
Yes (0)No (0)
1
pcre_interface not working under msvc compiling
Posted by Angelmelody on 17 October 2014 - 07:34 AM
1> patcommand.c 1>d:\ps\hercules\my-herc-src\src\plugins\patcommand.c(1593): error C2065: 'libpcre' : undeclared identifier 1>d:\ps\hercules\my-herc-src\src\plugins\patcommand.c(1593): error C2223: left of '->exec' must point to struct/union 1>d:\ps\hercules\my-herc-src\src\plugins\patcommand.c(1635): error C2065: 'libpcre' : undeclared identifier 1>d:\ps\hercules\my-herc-src\src\plugins\patcommand.c(1635): error C2223: left of '->compile' must point to struct/union 1>d:\ps\hercules\my-herc-src\src\plugins\patcommand.c(1640): error C2065: 'libpcre' : undeclared identifier 1>d:\ps\hercules\my-herc-src\src\plugins\patcommand.c(1640): error C2223: left of '->study' must point to struct/union 1>d:\ps\hercules\my-herc-src\src\plugins\patcommand.c(1691): error C2065: 'libpcre' : undeclared identifier 1>d:\ps\hercules\my-herc-src\src\plugins\patcommand.c(1691): error C2223: left of '->free' must point to struct/union 1>d:\ps\hercules\my-herc-src\src\plugins\patcommand.c(1694): error C2065: 'libpcre' : undeclared identifier 1>d:\ps\hercules\my-herc-src\src\plugins\patcommand.c(1694): error C2223: left of '->free' must point to struct/union ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========relative topic : http://herc.ws/board...h-from-rathena/
changed status to: Needs More Info
Are you including npc.h? Also is your MSVC project defining PCRE_SUPPORT? (or linking to it, no idea how windows does it (you should check settings of map server, theres probably a PCRE_SUPPORT somewhere)
yes...I believe it is a problem with your plugin MSVC settings, you have to define pre include/lib, for example, map server does this (quote from https://github.com/H...-server.vcxproj )
also in
<AdditionalIncludeDirectories>..\3rdparty\mysql\include;..\3rdparty\zlib\include;..\3rdparty\pcre\include;..\3rdparty\msinttypes\include;..\3rdparty\mt19937ar;..\3rdparty\libconfig;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>WIN32;_WIN32;__WIN32;_DEBUG;PCRE_SUPPORT;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;FD_SETSIZE=4096;LIBCONFIG_STATIC;YY_USE_CONST;%(PreprocessorDefinitions)</PreprocessorDefinitions>(note pcre)
also in
<AdditionalDependencies>libcmtd.lib;oldnames.lib;ws2_32.lib;libmysql.lib;zdll.lib;pcre.lib;%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)$(ProjectName).exe</OutputFile> <AdditionalLibraryDirectories>..\3rdparty\mysql\lib;..\3rdparty\zlib\lib;..\3rdparty\pcre\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
yes,I had inclueded npc.h and pcre.h , Here is my map-server.vcxproj
,but pcre_interface still not working with msvc compiling
,but pcre_interface still not working with msvc compiling
Edited by Angelmelody, 18 October 2014 - 02:24 AM.
up ! Could someone take some time to fix it and make it works under mscv compiling?
Your map-server vcxproj isn't what I need to see, it is your plugins .vcxproj
Your map-server vcxproj isn't what I need to see, it is your plugins .vcxproj
Here is my plugin-atcommand.vcxproj , I have no idea where I should insert
pcre_suuport and pcre.lib into my plugin
changed status to: Invalid
yes that confirms it, your plugin project is not set to pcre (thus the error).
pretty much see where the map server vcxproj has pcre, and set it for your plugin as well
pretty much see where the map server vcxproj has pcre, and set it for your plugin as well