@Solo, Oh oh oh many const in pm_math.cpp and Util.cpp you should remove all const since Vector3Angle( "const" ....)
Because end of compilations show me error because many const* float .,... like It said "multiple definition"
I have tried fix but it has sill throw because multi definitions :/
I have removed all const if all methods than it compiles output only 2 "multiple definitions"
release/obj/hl1_client/studio_util.o:
home/sourceskyboxer/halflife-updated/linux../cl_dll/studio_util.cpp:75: first defined here
release/obj/hl1_client/pm_shared/pm_math.o: In function `Length(float const*)':
home/sourceskyboxer/halflife-updated/linux../pm_shared/pm_math.cpp:318: multiple definition of `Length(float const*)'
release/obj/hl1_client/util.o:
home/sourceskyboxer/halflife-updated/linux../cl_dll/util.cpp:38: first defined here
release/obj/hl1_client/pm_shared/pm_math.o: In function `VectorNormalize(float*)':
home/sourceskyboxer/halflife-updated/linux../pm_shared/pm_math.cpp:339: multiple definition of `VectorNormalize(float*)'
release/obj/hl1_client/util.o:
home/sourceskyboxer/halflife-updated/linux../cl_dll/util.cpp:80: first defined here
release/obj/hl1_client/pm_shared/pm_math.o: In function `VectorInverse(float*)':
home/sourceskyboxer/halflife-updated/linux../pm_shared/pm_math.cpp:358: multiple definition of `VectorInverse(float*)'
release/obj/hl1_client/util.o:
home/sourceskyboxer/halflife-updated/linux../cl_dll/util.cpp:99: first defined here
release/obj/hl1_client/pm_shared/pm_math.o: In function `VectorScale(float const*, float, float*)':
home/sourceskyboxer/halflife-updated/linux../pm_shared/pm_math.cpp:365: multiple definition of `VectorScale(float const*, float, float*)'
release/obj/hl1_client/util.o:
home/sourceskyboxer/halflife-updated/linux../cl_dll/util.cpp:106: first defined here
release/obj/hl1_client/pm_shared/pm_math.o: In function `VectorAngles(float const*, float*)':
home/sourceskyboxer/halflife-updated/linux../pm_shared/pm_math.cpp:406: multiple definition of `VectorAngles(float const*, float*)'
release/obj/hl1_client/util.o:
home/sourceskyboxer/halflife-updated/linux../cl_dll/util.cpp:51: first defined here
collect2: error: ld returned 1 exit status
Makefile.hl_cdll:139: recipe for target 'client.so' failed
make[1]:
* [client.so] Error 1
make[1]: Leaving directory '/home/sourceskyboxer/halflife-updated/linux'
Makefile:152: recipe for target 'hl_cdll' failed
make:
* [hl_cdll] Error 2
My god - I have resolved all removing const from pm_math.cpp and Util.cpp than it said errors
But it always shows "multiple definition" errors :/
I already tried with or without "const*"
How do I fix?
Found
explanation with gcc need add parametewr "-lm" for <math.h> of Ubuntu 16.04's include