Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

An attempt to compile sdl2 failed

mochongli
Novice
594 Views

I used cmake to generate SLNS, adding the compile command /Qmsse3 /Qfreestanding.
Version:2.26.4
Output:
3>lld-link: : error : undefined symbol: __declspec(dllimport) ldexp
3>>>> referenced by SDL2.dir\Release\SDL.obj:(ldexpf)
3>>>> referenced by SDL2.dir\Release\SDL_assert.obj
3>>>> referenced by SDL2.dir\Release\SDL_dataqueue.obj

0 Kudos
5 Replies
VaishnaviV_Intel
Moderator
543 Views

Hi,


 

Thanks for posting in Intel communities.


Could you please provide us with the following details to investigate the issue more from our end?

1. oneAPI version you are using.

2. Hardware details.

4. CMake version.

3. OS details and compiler version.

4. And also please provide us with the sample reproducer and steps to reproduce the issue.


Thanks & Regards,

Vankudothu Vaishnavi.



0 Kudos
mochongli
Novice
525 Views

1. oneAPI version you are using.
2023.0.0.25839

2. Hardware details.

4. CMake version.
3.26.0

3. OS details and compiler version.
Windows11 22621.1413

4. And also please provide us with the sample reproducer and steps to reproduce the issue.
download sdl2 code,
https://github.com/libsdl-org/SDL/releases/tag/release-2.26.4 
used cmake to generate SLN, Open sln and set to use the intel compiler.
compile command /Qmsse3 /Qfreestanding.

0 Kudos
mochongli
Novice
521 Views

I tried this branch and compiled successfully.

0 Kudos
VaishnaviV_Intel
Moderator
462 Views

Hi,


Glad to know that your issue is resolved. Thanks for sharing the solution with us. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel. 


Thanks & Regards,

Vankudothu Vaishnavi.


0 Kudos
Reply