Comments (8)
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.
Hi @netplus , I try to rebuild in the latest commit c2081aa, these two error still can be repro.
msbuild.log
from netplus.
@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.
@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:
- open VS2019 x64 tools command
- git clone https://github.com/netplus/netplus F:\netplus
- F:\netplus\projects\msvc
- mkdir build_amr64 & cd build_amr64
- "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=arm64
- set INCLUDE=F:\netplus\3rd\c-ares\c-ares-1.17.2\include;%INCLUDE%
- set INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um;%INCLUDE%
- set INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared;%INCLUDE%
- set INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include;%INCLUDE%
- set INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt;%INCLUDE%
- set INCLUDE=F:\netplus\include;%INCLUDE%
- set LINK=/SUBSYSTEM:WINDOWS
- 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 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.
@netplus Thank you for your reply. Could you help to tell me that how to fix this error? Thank you very much
from netplus.
@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.
@netplus I have build pass on latest version d01cd39. Thank you very much
from netplus.
Related Issues (9)
- Netplus failed to build due to "fatal error C1083: Cannot open include file: 'ares_build.h': No such file or directory" on x86 and x64 configuration with MSVC on windows HOT 2
- rpc: optimize request list HOT 2
- socket_channel: check whether a sendmsg with multi-buf has a better performance compared to send HOT 1
- opt buf copy with zerocopy
- add --with-botan for cmake
- enable tls support HOT 1
- check websocket's bigendian implementation HOT 1
- use llhttp instead of http_parser HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netplus.