13. oktober 2003 - 13:39Der er
5 kommentarer og 1 løsning
import obsolete warning
Jeg får en import obsolete warning når jeg compiler. Jeg bruger g++ på en red hat 7.2 og KDevelop 2.0. Jeg har kun 4 filer som jeg bruger i min makefile, porblemet opstod da jeg tilføjede nr 4.
Den moderne arbejdsplads er i stigende grad afhængig af mødelokaler til at fremme samarbejde, men dette skift medfører også stigende sikkerhedsudfordringer.
Fejlen> [lennart@dhcppc1 trust]$ make g++ -c Main.cpp TrustManager.cpp TrustCalculator.cpp TrustValue.cpp -s In file included from Main.cpp:3: TrustCalculator.h:3:2: warning: #import is obsolete, use an #ifndef wrapper in the header file In file included from TrustCalculator.cpp:1: TrustCalculator.h:3:2: warning: #import is obsolete, use an #ifndef wrapper in the header file g++ -o trust Main.o TrustManager.o TrustCalculator.o TrustValue.o -s
og .h filen #ifndef TRUSTCALCULATOR_H #define TRUSTCALCULATOR_H #import "TrustValue.h" /* ** By Lennart Conrad 12-10-2003 ** The TrustCalculator class is an abstract class. ** Subclasses implementing different strategies should impmement the calculate() methods ** implementation are found in TrustCalculator.cpp ** */ class TrustCalculator {
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.