falken icon indicating copy to clipboard operation
falken copied to clipboard

falken::Rotation::FromEulerAngles causes LNK2019 compiler error

Open DrunkReaperMatt opened this issue 3 years ago • 9 comments

When building my solution, i keep encountering a LNK2019 error while using falken::Rotation::FromEulerAngles. Other methods from the library compile, only this one is polling the error.

My current set up is

  • Unreal Engine 4.25
  • Visual Studio 2019
  • released version of the c++ sdk (0.0.2)

DrunkReaperMatt avatar Nov 01 '21 14:11 DrunkReaperMatt

Hi,

Please try rebuilding the SDK as well; this problems happens with some compiler and library configurations that don't completely match the ones used for building the released version.

Thanks

hmoraldo avatar Nov 01 '21 17:11 hmoraldo

i tried recompiling the sdk and i encounter errors in cmake (ver 3.21.1). i attached the error log for clarity CMakeError.log

DrunkReaperMatt avatar Nov 04 '21 15:11 DrunkReaperMatt

This looks like missing dependencies, but I can't look into it deeply enough to debug it further. I suggest rechecking dependencies and compiler / linker configuration.

hmoraldo avatar Nov 05 '21 15:11 hmoraldo

i managed to compile the sdk from scratch. after updating my files, the issue still persists.

the output log has the messge error LNK2019: unresolved external symbol "public: static struct falken::Rotation __cdecl falken::Rotation::FromEulerAngles(float,float,float)" (?FromEulerAngles@Rotation@falken@@SA?AU12@MMM@Z)

DrunkReaperMatt avatar Nov 08 '21 15:11 DrunkReaperMatt

The simplest cause for this would be that you are not linking to the library in your program. But there could be other causes.

Do the tests pass? Are you able to build and run the example programs?

If they work, how does your compiler and linker configuration differ from that used to run the example programs? Those differences should point out to the issue here.

hmoraldo avatar Nov 08 '21 18:11 hmoraldo

i can build and run.. but encounter errors in the game image

i tried rebuilding from the source with the prebuilt sdk and a fresh environment

DrunkReaperMatt avatar Nov 09 '21 19:11 DrunkReaperMatt

Great to hear it. Would you please describe what you did to fix the issue?

As for the errors, it would be very helpful to look at logs in the service as well (you may need to add some logs if needed). The important bit is to figure out which calls are reaching the service correctly, and if any, which ones are timing out because of errors service-side.

hmoraldo avatar Nov 09 '21 21:11 hmoraldo

i get those messages after building hello_falken. i took the source code and built from scratch.

DrunkReaperMatt avatar Nov 10 '21 14:11 DrunkReaperMatt

Thanks for the details.

hmoraldo avatar Nov 10 '21 17:11 hmoraldo