It is currently Sun Apr 30, 2017 3:46 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Compilation .c to .nes
PostPosted: Wed Mar 15, 2017 6:09 am 
Offline

Joined: Tue Feb 28, 2017 1:43 pm
Posts: 6
Hi, i have a problem when i want compile a file .c to have a .nes.

I follow this tutorial : http://anton.maurovic.com/posts/nintend ... nvironment

Im in Windows.

But when i wrote this command line : cl65 -t nes hello-nes.c -o hello.nes

I have this error message :
ld65: Error: Wrong data version in `C:\Program Files (x86)\cc65/lib/nes.lib'

My version of cc65 is :
cc65 V2.13.3
SVN version: 5495

Have someone a solution please ?
Thank you


Top
 Profile  
 
PostPosted: Wed Mar 15, 2017 8:41 am 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 1515
Location: DIGDUG
Try it without setting a target system.

Remove "-t nes".


Never mind. I think that will probably get you more error messages.

EDIT - I got it to compile, no errors. I'm using version 2.15 cl65.

EDIT 2 - You didn't by any chance install more than 1 version of cc65(etc) did you? I had problems when I did that, ended up uninstalling all cc65 stuff and removing paths from environmental variables.

(On a side note, I actually have 3 versions of cc65 on my computer, but none are in environmental variables, so they can't conflict).

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 6 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group