Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile the "main.cpp" #3

Open
AnCheTeng opened this issue Jan 15, 2017 · 0 comments
Open

Compile the "main.cpp" #3

AnCheTeng opened this issue Jan 15, 2017 · 0 comments

Comments

@AnCheTeng
Copy link
Collaborator

AnCheTeng commented Jan 15, 2017

Command:

gcc -c -std=c99 -o bptree.o src/bptree.c
gcc -c -std=c99 -o directory.o src/directory.c
gcc -c -std=c99 -o relation.o src/relation.c
g++ -c -std=c++11 -o cli.o main.cpp
g++ -o bp_project cli.o bptree.o directory.o relation.o

OR

gcc-4.9 -c -std=c99 -o bptree.o src/bptree.c
gcc-4.9 -c -std=c99 -o directory.o src/directory.c
gcc-4.9 -c -std=c99 -o relation.o src/relation.c
g++ -c -std=c++11 -o cli.o main.cpp
g++ -o bp_project cli.o bptree.o directory.o relation.o

Then:
./bp_project < input_data.txt > output_data.txt

NOTE: There is a bug with g++-4.9, try-catch block cannot handle the "std::stoi" function! I haven't tested another edition of g++.

@AnCheTeng AnCheTeng changed the title Compile the "cli.cpp" Compile the "main.cpp" Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant