Git Product home page Git Product logo

Comments (8)

netplus avatar netplus commented on June 7, 2024

StackWalker is not available on msvc&arm platform, I've disabled it. could you please checkout the latest commit to take a try ?

from netplus.

YangYang129 avatar YangYang129 commented on June 7, 2024

Hi @netplus , I try to rebuild in the latest commit c2081aa, these two error still can be repro.
msbuild.log

from netplus.

netplus avatar netplus commented on June 7, 2024

@YangYang129 The latest commit includes the support for arm/arm64 on msvc platform. I've done a successful compile by building (https://github.com/netplus/netplus/blob/main/projects/msvc/netplus.vcxproj) directly. I'm not sure whether the cmake proj works properly , Could you take a try then ?

from netplus.

YangYang129 avatar YangYang129 commented on June 7, 2024

@netplus I try re-build netplus, display "error LNK2019: unresolved external symbol WinMain referenced in function "int __cdecl __scrt_common_main_seh(void)""
Steps to reproduce:

  1. open VS2019 x64 tools command
  2. git clone https://github.com/netplus/netplus F:\netplus
  3. F:\netplus\projects\msvc
  4. mkdir build_amr64 & cd build_amr64
  5. "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=arm64
  6. set INCLUDE=F:\netplus\3rd\c-ares\c-ares-1.17.2\include;%INCLUDE%
  7. set INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um;%INCLUDE%
  8. set INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared;%INCLUDE%
  9. set INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include;%INCLUDE%
  10. set INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt;%INCLUDE%
  11. set INCLUDE=F:\netplus\include;%INCLUDE%
  12. set LINK=/SUBSYSTEM:WINDOWS
  13. msbuild /m /p:Platform=arm64 /p:Configuration=Release ../netplus.sln /p:useenv=true /t:Rebuild

Build.log:
msbuild.log

Error info:
2>MSVCRT.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol WinMain referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@yahxz) [F:\netplus\projects\msvc\netplus.vcxproj]
2>F:\netplus\projects\msvc\build_amr64\netplus.exe : fatal error LNK1120: 1 unresolved externals [F:\netplus\projects\msvc\netplus.vcxproj]

from netplus.

netplus avatar netplus commented on June 7, 2024

Netplus is a static lib, so it's ok to get ": unresolved external symbol WinMain", We have to our own int main(int argc, char** argv) {} to link against Netplus lib.

from netplus.

YangYang129 avatar YangYang129 commented on June 7, 2024

@netplus Thank you for your reply. Could you help to tell me that how to fix this error? Thank you very much

from netplus.

netplus avatar netplus commented on June 7, 2024

@YangYang129 I suggest you write a x86 arch based application first, then compile it for a arm based arch. This shall simplify the understanding.

For a x86 arch based netplus app, we have lot's of example under test folder.

from netplus.

YangYang129 avatar YangYang129 commented on June 7, 2024

@netplus I have build pass on latest version d01cd39. Thank you very much

from netplus.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.