asny / three-d

2D/3D renderer - makes it simple to draw stuff across platforms (including web)
MIT License
1.34k stars 110 forks source link

Compiling/linking issue on examples with gnu toolchain #486

Closed plegat closed 1 month ago

plegat commented 2 months ago

Hi all,

Sorry if already discussed somewhere, I didn't find answers directly linked to three_d but found some data on other softs...

I am starting "playing" with examples to understand how three-d works, but cannot compile some of them, apprently due to incompatibility between dependances toolchain and local one.

I am working with (default as shown, gnu toolchain on win11):

installed toolchains
--------------------

stable-i686-pc-windows-gnu
stable-x86_64-pc-windows-gnu (default)
stable-x86_64-pc-windows-msvc

active toolchain
----------------

stable-x86_64-pc-windows-gnu (default)
rustc 1.81.0 (eeb90cda1 2024-09-04)

For example, trying to compile "wireframe" example with:

cargo run --release --example wireframe

ends with an error:

error: linking withx86_64-w64-mingw32-gccfailed: exit code: 1 with a lot of warnings as:

          Warning: .drectve `-exclude-symbols:"_ZN80_$LT$core..str..pattern..StrSearcher$u20$as$u20$core..str..pattern
..Searcher$GT$10next_match17h608a72a84d629984E" ' unrecognized
          Warning: .drectve `-exclude-symbols:"_ZN81_$LT$core..str..pattern..CharSearcher$u20$as$u20$core..str..pattern
..Searcher$GT$10next_match17he7b9d5cea1a57b80E" ' unrecognized
          Warning: .drectve `-exclude-symbols:"_ZN81_$LT$core..str..pattern..CharSearcher$u20$as$u20$core..str..pattern
..Searcher$GT$8haystack17h6acce2638fd0c999E" ' unrecognized
          Warning: corrupt .drectve at end of def file
          Warning: corrupt .drectve at end of def file

As far as I found, it is linked to incompatibility between dependance msvc toolchain and gnu toolchain...

Does anybody meet this problem... and solve it?

... meaning, without installing MSVC build tools (I cannot, licence requirement for professional use for internal software... as far as I understand its licence!!!)

Thanks for reading

asny commented 2 months ago

That seems very unrelated to three-d. Do you only have problems with compiling three-d examples?