Jump to content
IGNORED

Sample programs in C?


Recommended Posts

I'm not sure of the year, but I know that Daniel upgraded his dev tools to use SDCC instead of the Hi-Tech C compiler. I don't think Daniel updated his PDF documentation to reflect the adjustments necessary to make the source code compatible with SDCC. But we're talking very minor code adjustments, so for the most part, the PDF document you found should be okay.

Link to comment
Share on other sites

Problems:

I've downloaded his toolkit and installed per the instructions. When I attempt to compile the test\main.c, per the instructions in his video, I don't get an output file. Only c.bat and main.rel are created in the test folder. There are no errors.

 

My PC configuration: Ubuntu 11.04. I am running the toolkit under WINE, rather than native Windows, though I don't know that it should make any difference. I downloaded SDCC 3.1.

 

Thoughts?

 

EDIT: Cancel this last question. I also needed to hit Link, which created the actual result.rom file. I now have my dev environment set up, and it's time to play!

Edited by SlowCoder
Link to comment
Share on other sites

I'm a little familiar with the C programming structure. I'm thinking about learning CV programming. I was wondering if there is any sample code from a completed project available?

 

http://bfg-gamepassion.blogspot.fr/2012/03/santa-save-christmas-le-code-source.html

 

The source code of my little Christmas game ...

  • Like 1
Link to comment
Share on other sites

I'm a little familiar with the C programming structure. I'm thinking about learning CV programming. I was wondering if there is any sample code from a completed project available?

 

http://bfg-gamepassi...ode-source.html

 

The source code of my little Christmas game ...

Much thanks! I'll review it in a little while!

... and translate from French to English! :P

Edited by SlowCoder
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...