Homebrew How To Setup Devkitpro/CTRULIB + Compiling on Windows?

  • Thread starter Thread starter dpad_5678
  • Start date Start date
  • Views Views 4,132
  • Replies Replies 12

dpad_5678

Ape weak on own. Ape strong in unity.
Member
Joined
Nov 19, 2015
Messages
2,219
Reaction score
1,932
Trophies
1
XP
2,914
Country
United States
Any tutorials?

Where do I create my .cpp files so it will recognize the libraries and stuff like that?

Do I have to do anything with my Environment Variables.


Yes, I already installed devkitpro from the .exe setup file.
 
Try compiling one of the examples in /devkitPro/examples/3ds/ by going to the directory in your command line and typing "make".

To start your own project the easiest way is to just base it off of one of the examples or by copying the Makefile.
 
Try compiling one of the examples in /devkitPro/examples/3ds/ by going to the directory in your command line and typing "make".

To start your own project the easiest way is to just base it off of one of the examples or by copying the Makefile.
Ok, thanks.

So how would i modify the Makefile to compile a .cpp and not a .c file?
 
Ok, thanks.

So how would i modify the Makefile to compile a .cpp and not a .c file?
if you use the template project and makefile then it is setup to use a "source" and "include" directory. it can compile .c .cpp and .asm files that you put in the "source" directory.
 
if you use the template project and makefile then it is setup to use a "source" and "include" directory. it can compile .c .cpp and .asm files that you put in the "source" directory.
This is the error I get when I compile main.cpp .


Code:
C:\devkitPro\examples\3ds\templates\application>make
make[1]: *** No rule to make target `c:/devkitPro/examples/3ds/templates/application/source/main.c', needed by `main.o'.  Stop.
make: *** [build] Error 2

C:\devkitPro\examples\3ds\templates\application></code>
 

Site & Scene News

Popular threads in this forum