Globale Variable
-
Hallo
Ich bekomme beim Borland Builder 5 folgende Warnung wenn ich eine globale Variable in die Header-Datei schreiben will:
[Linker Warnung] Public symbol '_aenderung' defined in both module E:\C++CODES\EIGENENP\BORLAND EDITOR\EDITOR.OBJ and E:\C++CODES\EIGENENP\BORLAND EDITOR\MAINF.OBJ
Ich habe diese Variable allerdings nur einmal definiert.
-
Suchfunktion mit den Stichworten "defined both module" liefert u.A. folgende Threads:
http://www.c-plusplus.net/forum/viewtopic.php?t=10858&highlight=public+symbol+defined+both+module
http://www.c-plusplus.net/forum/viewtopic.php?t=11229&highlight=public+symbol+defined+both+module
http://www.c-plusplus.net/forum/viewtopic.php?t=11592&highlight=public+symbol+defined+both+module
http://www.c-plusplus.net/forum/viewtopic.php?t=12229&highlight=public+symbol+defined+both+module
http://www.c-plusplus.net/forum/viewtopic.php?t=12719&highlight=public+symbol+defined+both+module
-
Danke. Habe den Fehler gefunden.
Ich muss in der anderen Header die Variable mit extern noch einmal deklarieren.
