Jump to content
SlowCoder

Sample programs in C?

Recommended Posts

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?

Share this post


Link to post
Share on other sites

Daniel Bienvenu offered a lot of sample code in the past. You may find something by googling around...

Share this post


Link to post
Share on other sites

Thanks. I happened across a 2006 PDF detailing C for the CV written by him. It's comprehensive, and easy to understand. He did a good job on it. I wonder if there is a newer version I should get?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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.

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...