Skip to content

seanjohnson08/cpp-conditional-entry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repo is a minimal example for having multiple entry points into the program and choosing the entry point at build time.

Build and run

Enter through main.cpp:

g++ *.cpp -o program && ./program

Enter through addtwonumbers.cpp:

g++ *.cpp -o program -DMAIN=ADDTWONUMBERS && ./program

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published