Skip to content
This repository was archived by the owner on May 11, 2022. It is now read-only.
This repository was archived by the owner on May 11, 2022. It is now read-only.

Error link whith mingw #11

@erpofr

Description

@erpofr

hi
When I compile the project with Mingw, I have the following error when i build the test :

C:\Users\Utilisateur\Documents\Developpement\C\gpxlib\build>mingw32-make.exe > log-build.txt
CMakeFiles\gpxcheck.dir/objects.a(gpxcheck.cpp.obj):gpxcheck.cpp:(.text+0x96a7): undefined reference to gpx::distance(double, double, double, double)' CMakeFiles\gpxcheck.dir/objects.a(gpxcheck.cpp.obj):gpxcheck.cpp:(.text+0x979e): undefined reference to gpx::bearing(double, double, double, double)'
CMakeFiles\gpxcheck.dir/objects.a(gpxcheck.cpp.obj):gpxcheck.cpp:(.text+0x98a5): undefined reference to `gpx::crosstrack(double, double, double, double, double, double)'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[2]: *** [test\CMakeFiles\gpxcheck.dir\build.make:110: test/gpxcheck.exe] Error 1
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:413: test/CMakeFiles/gpxcheck.dir/all] Error 2
mingw32-make.exe: *** [Makefile:151: all] Error 2

In the file attach, you have the log of compilation. The functions in the file Algorithm.h are not linked the library gpxlib but the library is compiled without error.

I don't unsterstand the origin of this mistake in test module gpxcheck. Can you help me ? thank

log-build.txt

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions