Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

Issue Confirmations

  • Yes (0)No (0)
Photo

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/

Ind 
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 )
      <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

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 :(

Ind 
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