Re: g++
Hi, Adrian.
> hast du ein #include <test1.h> in test2.c?
Ja habe ich, ich wollte testen ob ich so das makefile
umgehen kann (bzw keines machen muß, weil ich denke
dass man das für sowas braucht)
> Falls ja schick bitte den kompletten Code.
test1.cpp
using namespace std;
#include <test1.h>
#include <iostream.h>
void out ()
{
cout << "bla bla" << endl;
}
test1.h
using namespace std;
void out();
test2.cpp
using namespace std;
#include <iostream.h>
#include "test1.h"
int main()
{
out();
return 0;
}
Ich hoffe mal das das jezt kein total einfacher
und für mich peinlicher Fehler ist ;)
Danke für die Hilfe.
Und es gibt wirklich keine Fehler Referenz?
Das ist echt unschön!
Michael
Reply to:
- Follow-Ups:
- Re: g++
- From: Adrian Bunk <bunk@fs.tum.de>
- Re: g++
- From: Kevin Krammer <kevin.krammer@gmx.at>
- References:
- g++
- From: "Michael Langer" <mphantom@gmx.net>
- Re: g++
- From: Adrian Bunk <bunk@fs.tum.de>