Skip to content

xrfez/nim_mixed_c_cpp_static

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mixed C and C++ Project Structure

git clone "https://github.com/xrfez/nim_mixed_c_cpp_static"
cd nim_mixed_c_cpp_static
nim c -r helloWorld.nim

At compile time generate .o files for the C++ dependencies with the c++ compiler and save to the nimcache directory
Link to the o files in nim
Use a switch to swap out the C Linker for the C++ Linker
Compile nim using the c backend

This examples assumes GCC is the compiler and Windows.

I'm pretty sure this would not work if 2 different compilers are used for the C and C++ compilation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published