Alright, it looks like I'm still having problems. I was able to build the png example from the make file, and I was able to build the hello world example in code::blocks. However, I thought I was able to build the png from code::blocks as well, but I was wrong. I'm getting the following errors
Code:
-------------- Build: Release in ProjectScholar ---------------
Compiling: main.c
Linking console executable: bin/Release/ProjectScholar.elf
obj/Release/main.o: In function `back_init':
/home/john/Desktop/Programming/Project Scholar/main.c:27: undefined reference to `_png_to_texture'
obj/Release/main.o: In function `font_init':
/home/john/Desktop/Programming/Project Scholar/main.c:54: undefined reference to `_wfont'
obj/Release/main.o: In function `text_init':
/home/john/Desktop/Programming/Project Scholar/main.c:69: undefined reference to `_zlib_getlength'
/home/john/Desktop/Programming/Project Scholar/main.c:69: undefined reference to `_gzopen'
/home/john/Desktop/Programming/Project Scholar/main.c:69: undefined reference to `_gzread'
/home/john/Desktop/Programming/Project Scholar/main.c:69: undefined reference to `_gzclose'
obj/Release/main.o:(.data+0x0): undefined reference to `_romdisk_boot'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
7 errors, 0 warnings
I've tried various things to fix this, such as linking the project to libz.a found in kos/addons/libs, but I'm unable to figure out the problem. I've added the romdisk_boot folder to my project as well, so that shouldn't be the source of my problem.. It seems to me that I am missing an include, included the png header incorrectly, or am not linking to the right libraries. Can anyone help me out?