google / google/googletest

[Bug]: undefined reference to `testing::internal::MakeAndRegisterTestInfo

Open
#4,810 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
39.5k
Forks
10.9k
Avg merge
6d 13h
Merged PRs (30d)
1

Description

### Describe the issue

undefined reference to `testing::internal::MakeAndRegisterTestInfo(std::__cxx11::basic_string, std::allocator >, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void (*)(), void (*)(), testing::internal::TestFactoryBase*)'

### Steps to reproduce the problem

normal TEST() method

### What version of GoogleTest are you using?

googletest_1.14.0

### What operating system and version are you using?

UNNTU 22

### What compiler and version are you using?

GCC

### What build system are you using?

cmake

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

The report names a normal TEST() method, GoogleTest 1.14.0, GCC, CMake, and Ubuntu 22 but provides no repository files or failing test. Start by reproducing the linker error with the reported toolchain; done means a normal TEST() target links successfully without the undefined reference.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.