CppStreams | CppStreams is a data pipeline library for C
kandi X-RAY | CppStreams Summary
kandi X-RAY | CppStreams Summary
CppStreams is a data pipeline library for C++14.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of CppStreams
CppStreams Key Features
CppStreams Examples and Code Snippets
Community Discussions
Trending Discussions on CppStreams
QUESTION
I'm trying to get some CI on Travis CI working.
So I set up some tests with gtest and gradle. Only having one test file was working flawlessly. However as soon as I added the second I get tons of multiple definition
errors. And they're only gtest symbols. The weirdest thing is, I am not able to reproduce this on any other system. I tried my local Ubuntu machine with GCC7, Debian with GCC6 and Windows with VS 2015.
I'm rather clueless as to why these errors appear and why they only appear on Travis CI.
Build log: https://travis-ci.org/fivunlm/cppstreams/jobs/420067374
Repo (the branch I'm working on): https://github.com/fivunlm/cppstreams/tree/0a89e8f01c9f868a2d690780b2afe159627bd81e
Build file: https://github.com/fivunlm/cppstreams/blob/0a89e8f01c9f868a2d690780b2afe159627bd81e/build.gradle
Edit:
The main issue is the compilation error. The irreproducibility, just makes it a lot harder to debug.
Edit 2:
I just managed to recreate it un my Ubuntu VM. It's the first time ever though. I'll be able to try to debug it first hand. Also I'll be able to answer more in depth questions.
...ANSWER
Answered 2018-Aug-24 at 19:57As it turns out, I was compiling gtest incorrectly. The culprit is this: https://github.com/fivunlm/cppstreams/blob/0a89e8f01c9f868a2d690780b2afe159627bd81e/lib/build.gradle#L16-L17
Instead it should just be include "src/gtest-all.cc"
. The file includes all other sources.
So if you're not sure why your gtest is acting up, make sure you only compile src/gtest-all.cc
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install CppStreams
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page