Skip to content

blackbear submodule not linking against conda std library #16867

Discussion options

You must be logged in to vote

Ok I think I've figured this out. Here is a test program:

#include <iostream>
#include <some_crazy_name_bar>
using namespace std;

int main()
{
  bar();
  cout << "Hello World!\nI'm a C++ program\n";
}

and here is the directory containing it:

(moose-libmesh) lindad@localhost:~/programming/cpp/test-includes(master)$ ls
a.out               hello.cpp           iostream            some_crazy_name_bar

iostream is some dummy file that that does not contain a definition of std::cout. some_crazy_name_bar is a file that defines the method void bar() {}. Here are some different compilation attempts:

(moose-libmesh) lindad@localhost:~/programming/cpp/test-includes(master)$ clang++ -I. hello.cpp 
he…

Replies: 3 comments 15 replies

Comment options

You must be logged in to vote
10 replies
@lindsayad
Comment options

@lindsayad
Comment options

@lindsayad
Comment options

@lindsayad
Comment options

@lindsayad
Comment options

Comment options

You must be logged in to vote
4 replies
@lynnmunday
Comment options

@lindsayad
Comment options

@lynnmunday
Comment options

@lindsayad
Comment options

Answer selected by lynnmunday
Comment options

You must be logged in to vote
1 reply
@lindsayad
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants