13. juli 2002 - 16:06Der er
8 kommentarer og 1 løsning
newbee - kan ikke åbne iostream.h ??
Hejsa Er lige begyndt at lege lidt med C/C++ Har læst guiden på cplusplus.com om compiler, men når jeg vil compile en fil får jeg denne meddelse:
Error E2209 test.cpp 2: Unable to open include file 'iostream.h' Error E2451 test.cpp 6: Undefined symbol 'cout' in function main() Error E2451 test.cpp 7: Undefined symbol 'cin' in function main()
Nogen der kan fortælle mig hvad der er galt ?? Har kontroleret at iostream.h filen er der.
Denne side indeholder artikler med forskellige perspektiver på Identity & Access Management i private og offentlige organisationer. Artiklerne behandler aktuelle IAM-emner og leveres af producenter, rådgivere og implementeringspartnere.
Installing and running the Command Line Tools -----------------------------------------------
1. Run freecommandlinetools.exe; choose the drive and folder into which you want to install the free C++Builder 5 command line tool development system.
2. From the bin directory of your installation: a. Add "c:\Borland\Bcc55" to the existing path b. Create a bcc32.cfg file which will set the compiler options for the Include and Lib paths (-I and -L switches to compiler) by adding these lines: -I"c:\Borland\Bcc55\include" -L"c:\Borland\Bcc55\lib" c. Create an ilink32.cfg file which will set the linker option for the Lib path by adding this line: -L"c:\Borland\Bcc55\lib"
// custom countdown using while #include <iostream.h> int main () { int n; cout << "Enter the starting number > "; cin >> n; while (n>0) { cout << n << ", "; --n; } cout << "FIRE!"; return 0; }
Arr har fundet ud af det. Var kommet til at kalde den bc32.cfg i stedet for bcc32.cfg
Men ellers tak for hjælpen :-)
Synes godt om
Ny brugerNybegynder
Din løsning...
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.