Forum » Programiranje » eclipse - napaka pri prevajanju
eclipse - napaka pri prevajanju
slovencl ::
Kaj bi lahko bilo narobe. Inštaliral sem make in g++, naredim managed make c++ project, ob prevajanju mi pa javi:
**** Build of configuration Debug for project test16 ****
make -k all
Building file: ../main.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d" -o"main.o" "../main.cpp"
Finished building: ../main.cpp
Building target: test16
Invoking: GCC C++ Linker
g++ -o"test16" ./main.o
/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [test16] Error 1
make: Target `all' not remade because of errors.
Build complete for project test16
**** Build of configuration Debug for project test16 ****
make -k all
Building file: ../main.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d" -o"main.o" "../main.cpp"
Finished building: ../main.cpp
Building target: test16
Invoking: GCC C++ Linker
g++ -o"test16" ./main.o
/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [test16] Error 1
make: Target `all' not remade because of errors.
Build complete for project test16
- spremenil: slovencl ()
fiction ::
Erm v main.cpp nimas main() funkcije?
Prevede se vse skupaj brez problema, samo potem pri povezovanju (linkanju)
v izvrsljiv program ti rece da ne najde main-a.
Prevede se vse skupaj brez problema, samo potem pri povezovanju (linkanju)
v izvrsljiv program ti rece da ne najde main-a.
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | Gcc linkanje .soOddelek: Programiranje | 1587 (1152) | golobich |
» | navodila za izgradnjo binarne datotekeOddelek: Programiranje | 1188 (918) | WizmoTo |
» | [c++] programiranje v linuxu - eclipseOddelek: Programiranje | 1533 (1339) | mile |
» | Qt Designer -> KDevelop C++ ErrorOddelek: Programiranje | 2133 (1663) | 'FireSTORM' |
» | c++ vstavljanje knjižnice v kodoOddelek: Programiranje | 1629 (1288) | SasoS |