How to build pure C programs?
See original GitHub issueAlthough in BUCK
:
srcs
only contains.c
source files, no c++ files.compiler_flags
contains"-std=c11"
the output still links against libstdc++
.
How to write buck rules for pure C programs (without linking libstdc++)?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Building your own C application - OpenGL Tutorial
So, this tutorial will explain how to build your own C application from scatch. But first, you need a basic knowledge of what...
Read more >Walkthrough: Compile a C program on the command line
In the developer command prompt window, enter cd c:\ to change the current working directory to the root of your C: drive. Next,...
Read more >How to create C programs using latest Visual Studio 2019
In this video, I will show you the proper way to create C programs using Visual Studio 2019 For more in depth learning...
Read more >What are the differences between using pure C with a C ...
Always use a C compiler for C code, not C++. C++ isn't perfectly compatible with C. A few others: In C, declaring void...
Read more >Developing C programs on Windows
You will need two things to create C programs: a text editor to write the source code for the program and a compiler...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@njlr Thanks a lot!
ld = /usr/bin/gcc
does do the trick.I think that setting the linker to
gcc
in.buckconfig
does the trick.Here is my
ldd
output:I believe these are just C libraries?
All of the code is in my fork.