discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error About GNUstep Windows MSVC Toolchain linking Error.


From: bellabs
Subject: Error About GNUstep Windows MSVC Toolchain linking Error.
Date: Fri, 30 Jun 2023 21:28:58 +0800 (CST)

Hey Everyone! 
I compiled my OC++ program using the pre-compiled library provided in https://github.com/gnustep/tools-windows-msvc with following commands:
clang-cl -I "c:\gnustep\include" -fobjc-runtime=gnustep-2.0 -Xclang -fexceptions -Xclang -fobjc-exceptions -fblocks -DGNUSTEP -DGNUSTEP_WITH_DLL -DGNUSTEP_RUNTIME=1 -D_NONFRAGILE_ABI=1 -D_NATIVE_OBJC_EXCEPTIONS /MDd /c Demo.mm
clang-cl Demo.obj gnustep-base.lib objc.lib dispatch.lib /MDd -o app.exe

I got the following error when:
Demo.obj : warning LNK4078: multiple '.CRT' sections found with different attributes (40400040)
msvcrtd.lib(initializers.obj) : warning LNK4254: section '.CRT' (C0000040) merged into '.rdata' (40000040) with differe
nt attributes
I've googled and found some similar errors but it's not this library, I've deleted the Microsoft compiler and libraries on my machine and still have this problem, I'd like to ask for your help while I keep trying.

The following is the environment of my local machine:
clang => clang version 16.0.0
cl => Microsoft (R) C/C++ Optimizing Compiler Version 19.34.31933 for x64
systeminfo => OS Version:10.0.19044 N/A Build 19044

Best Regard!

PS:Finally, I casually say that my English is not good, but I will try to speak well, I hope you can understand me!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]