#include <iostream>
#include "printStuff.h"
using namespace std;
int main(){
print_hello();
return 0;
}
void print_hello();
#include <iostream>
using namespace std;
void print_hello(void){
cout<<"hello?"<<endl;
}
Here is the code: It is the simplest kind, but doesn't work properly in CodeBlocks:Come on... don't you think if this wouldn't work C::B would exist?! ;-)
-------------- Build: Debug in Test ---------------
mingw32-g++.exe -Wall -fexceptions -g -IC:\MinGW\include -c C:\Projects\Test\main.cpp -o obj\Debug\main.o
mingw32-g++.exe -Wall -fexceptions -g -IC:\MinGW\include -c C:\Projects\Test\PrintStuff.cpp -o obj\Debug\PrintStuff.o
mingw32-g++.exe -LC:\MinGW\lib -o bin\Debug\Test.exe obj\Debug\main.o obj\Debug\PrintStuff.o
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 0 warnings
-------------- Build: Debug in asdf2 ---------------
mingw32-g++.exe -Wall -fexceptions -g -IC:\MinGW\include -c C:\Temp\asdf2\printStuff.cpp -o obj\Debug\printStuff.o
mingw32-g++.exe -LC:\MinGW\lib -o bin\Debug\asdf2.exe obj\Debug\printStuff.o obj\Debug\main.o
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
<Unit filename="main.cpp" />
<How does it look for yours.>
yea, it looks correct now:
</Compiler>
<Unit filename="main.cpp" />
<Unit filename="printStuff.cpp">
<Option target="Release" />
</Unit>
<Unit filename="printStuff.h">
<Option target="Release" />
</Unit>
All three files are included. Thanks!