Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
New release is out; with some new features and fixes!

https://github.com/CE-Programming/toolchain/releases/latest

The latest function is os_GetStringInput(), which can get an input string from the user from the OS much like the basic Input and Prompt commands Smile
If you are curious about C and want to try learning it, this update was made for you!

The toolchain has been completely revamped and now uses jacobly's fasmg-ez80 tools to perform the assembling and linking stages that were once handled by the old ZDS tools. What this means:

    You no longer need to specify shared (L=) for libraries in the makefile, they are automatically detected and added.
    You do not need to change the debug flag in the makefile, simply use 'make debug'
    A better map file is produced, and in debug mode a debug file is produced for later source-level debugging in CEmu
    The movement away from closed-source third-party tools has begun, to be replaces by FOSS, which will make llvm integration even easier in the future.
    The library format is easier to use and adapt/add to.
    A few library bugs have been fixed, such as gfx_FillTriangle().


You can also use the standard stdio.h commands for interfacing with files! This includes functions such as fopen(), fputs(), fread(), etc. This leverages the shared fileioc library to make porting applications even easier.

Download links are below, happy coding!

https://github.com/CE-Programming/toolchain/releases/latest
https://github.com/CE-Programming/libraries/releases/latest

Many thanks to jacobly who contributed a significant portion in making this possible.
Hello, I was wondering, is there some alternative to the GetCalc( command in C? I am making a multiplayer game in C, but I cant find anything on linking calculators. Thanks!
After a lot of digging in Mateo's GitHub profile, I found the C USB documentation. You can view the whole documentation page here. I hope this helped! Smile
FizzyApple12 wrote:
Hello, I was wondering, is there some alternative to the GetCalc( command in C? I am making a multiplayer game in C, but I cant find anything on linking calculators. Thanks!

There is currently no linking support in C.
There is now a new release of the toolchain which includes many fixes and improvements. A new example demonstrates displaying fullscreen images from an appvar with ease. Enjoy, and have fun!

https://github.com/CE-Programming/toolchain/releases/latest
https://github.com/CE-Programming/libraries/releases/latest
I have a problem with the toolchain make, I typed make into the terminal and it didn't work

Code:
Wills-MacbookPro:hello_world WillWang$ make
makefile:15: /include/.makefile: No such file or directory
make: *** No rule to make target `/include/.makefile'.  Stop.

I think that I did add the environment variable but it didn't work.
I am confused by the steps, can someone help me?
Your environment variables don't seem to be set up properly. See: https://github.com/CE-Programming/toolchain/wiki/Installing-on-Linux-or-macOS.

You probably want to add a line like export CEDEV=~/CEdev && export PATH=~/CEdev/bin:$PATH (adjust the paths if your CEdev folder is elsewhere) to your ~/.bash_profile file and then restart the shell.
Runer112 wrote:
Your environment variables don't seem to be set up properly. See: https://github.com/CE-Programming/toolchain/wiki/Installing-on-Linux-or-macOS.

You probably want to add a line like export CEDEV=~/CEdev && export PATH=~/CEdev/bin:$PATH (adjust the paths if your CEdev folder is elsewhere) to your ~/.bash_profile file and then restart the shell.


I did things you said:

Code:
Wills-MacbookPro:hello_world WillWang$ export CEDEV=/Users/WillWang/CEdev && export PATH=/Users/WillWang/CEdev/binL$PATH

and then I tried make, but it said:

Code:
Wills-MacbookPro:hello_world WillWang$ make
make: winepath: Command not found
C CE SDK Version 7.5
usage: mkdir [-pv] [-m mode] directory ...
make: *** [dirs] Error 64

I have wine install and it is running
Looks like wine is not installed properly. How did you install it? Intstalling with homebrew seems to be the consensus best way to install wine on a Mac.
Runer112 wrote:
Looks like wine is not installed properly. How did you install it? Intstalling with homebrew seems to be the consensus best way to install wine on a Mac.


I installed it but I didn't use home-brew, does that matter?
How you install it shouldn't matter, as long as it gets installed correctly. I'm not convinced that it is installed correctly, though.

And if you attempt to reinstall it, remember to restart the shell to bring in the updated environment variables.
Brew is by far the best way to properly install anything on mac. Any luck?
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 16 of 16
» All times are GMT - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement