Hey, I just tryed to compile the powder toy source code using code::blocks, and this happened when i tryed to build it:
-------------- Build: Release in Powder Toy ---------------
Linking console executable: bin\Release\Powder Toy.exe obj\Release\src\graphics.o:graphics.c:(.data+0x11a0): multiple definition of `font_ptrs' obj\Release\font\unpacker.o:unpacker.c:(.data+0x11a0): first defined here obj\Release\src\graphics.o:graphics.c:(.data+0x0): multiple definition of `font_data' obj\Release\font\unpacker.o:unpacker.c:(.data+0x0): first defined here obj\Release\src\main.o:main.c:(.data+0x120): multiple definition of `tag' obj\Release\font\unpacker.o:unpacker.c:(.data+0x13a4): first defined here collect2: ld returned 1 exit status Process terminated with status 1 (0 minutes, 0 seconds) 0 errors, 0 warnings
What do i do? I'm absolutely sure i did nothing wrong. I followed all the steps exactly on the wiki.
@Ipquarx(View Post) Well, for future reference let me give you some advice(take jacksonmj's solution, this is just general advice). When you get errors, and you want to solve them, read the actual error. It's telling us the variables font_ptrs, font_data, and tag have been defined multiple times. I would suggest deleting the second definition, then it should compile fine. You can use search in this situation.