newbie c++ compiling class question
i have an assignment for school that i need to write a SavingsAccount class, how do i compile an external class?? i have these files already created
SavingsAccount.h SavingsAccount.cpp SavingsAcctTest.cpp thanks |
gcc -c SavingsAccount.cpp
gcc -o SavingsAcctTest SavingsAcctTest.cpp SavingsAccount.o |
Or just compile them all together:
gcc SavingsAccount.cpp SavingsAcctTest.cpp -o SavingsAcctTest |
Or make a makefile :D
|
gr33ndata beat me to it :D
ummm using gcc on a .cpp file might give you an error so try g++. |
All times are GMT -5. The time now is 07:59 AM. |