So, i decided to make my own project, and there it is. I copied the makefile from hello_world, and wrote my own cpp file main.cpp.
Here's the error -
Code: Select all
linking testOslibULlibs.elf
c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.3.3/../../../../arm-eabi/lib/th
umb/ds_arm9_crt0.o: In function `CIDLoop':
(.init+0x2e0): undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [/c/Users/Netaro/Desktop/Projekty2/Programowanie/testOslibULlibs/te
stOslibULlibs.elf] Error 1
make: *** [build] Error 2
Code: Select all
CPPFILES := main.cpp
Code: Select all
make[1]: *** No rule to make target `main.o', needed by `/c/Users/Netaro/Desktop
/Projekty2/Programowanie/testOslibULlibs/testOslibULlibs.elf'. Stop.
make: *** [build] Error 2
So, i'm stuck. What to do?
And i don't really think it's the problem with the contents of main.cpp, as there is main(), and all the necessary gizmo's. If needed i can copy/paste it.
EDIT:
OK, it compiled only when i put all the source files in source/include directories. So, what to change in makefile to make it look for all the necessary files in the folder makefile is in, as my experiments gave me nothing.