nö, geht auch nicht:
Hier hab ich mal folgendes gemacht (nur zur Demonstartion)
gcc -c lmmin.c -o lmmin.o
gcc -c lm_eval.c -o lm_eval.o
gcc lm_test.c lmmin.o lm_eval.o -o lm_test
Funktioniert!! Und jetzt:
cp lm_test.c lm_test.cpp
gcc -g lm_test.cpp lmmin.o lm_eval.o -o lm_test
Fehlermeldung:
Undefined reference to lm_evaluate(...) , usw.
____________________________________
Nur die Übung trennt das Außergewöhnliche vom Gewöhnlichen
|