-
-
Save ftiasch/66127fef9df5c204d76d2128fcf4ec30 to your computer and use it in GitHub Desktop.
buck issue report
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prebuilt_cxx_library( | |
name = 'test', | |
exported_headers = ['test.h'], | |
shared_lib = 'libtest.so', | |
preferred_linkage = 'shared', | |
) | |
cxx_binary( | |
name = 'main', | |
srcs = ['main.cpp'], | |
deps = [':test'], | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "test.h" | |
#include <iostream> | |
int main() | |
{ | |
std::cout << test() << std::endl; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
libtest.so: test.h test.cpp | |
c++ -shared test.cpp -olibtest.so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "test.h" | |
int test() | |
{ | |
return 42; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
int test(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment