Skip to content

A sample code that generates a linker error.

License

Notifications You must be signed in to change notification settings

drehren/doctest_linker_issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doctest_linker_issue

This is sample code that makes a linker error (at least in macOS) when compiling using doctest.

The test itself is not that useful as is just checking the return value of a constant.

  • Requires meson and ninja

Building

  1. meson build
  2. ninja -C build

Sample output

FAILED: doctest_issue 
c++  -o doctest_issue 'doctest_issue@exe/issue.cpp.o' -Wl,-dead_strip_dylibs -Wl,-undefined,error -Wl,-headerpad_max_install_names
Undefined symbols for architecture x86_64:
  "has_is_option<good_is_opt>::value", referenced from:
      _DOCTEST_ANON_FUNC_6() in issue.cpp.o
ld: symbol(s) not found for architecture x86_64

About

A sample code that generates a linker error.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published