Can you provide the error that happens when running the app? It might also help 
to run it with the Visual Studio debugger.


> Am 30.06.2023 um 16:27 schrieb bellabs <bell...@163.com>:
> 
> It's because it doesn't work so that I'm asking.
> 
> At 2023-06-30 21:58:56, "Frederik Seiffert" <frede...@algoriddim.com> wrote:
> 
> I’m not sure but I think you can ignore those linker warnings. Does the 
> executable work?
> 
> 
>> Am 30.06.2023 um 15:28 schrieb bellabs <bell...@163.com>:
>> 
>> 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