[ vatri @ 08.09.2011. 11:15 ] @
Pokusavam kompajlirati "programcic" na sledeci nacin: 1. korak: g++ -c database.cpp 2. korak: g++ -c main.cpp ovde mi ispise gresku: Code: main.cpp:5:40: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] main.cpp:11:72: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] main.cpp:12:1: error: expected unqualified-id before ‘for’ main.cpp:12:60: error: ‘it’ does not name a type main.cpp:12:79: error: expected unqualified-id before ‘++’ token main.cpp:17:1: error: ‘db’ does not name a type 3. korak bi bio g++ -o test main.o database.o (U attachmenntu su fajlovi) OS je Archlinux. U cemu je problem? Kako da mu dam char tip kao argument i zasto ga prepozna kao string? |