Jump to content

Recommended Posts

Posted

I'm having a mess of a time using Code::Blocks with my MIOS C application. Up to this point, I've always used Notepad++ and I want to try something different.

One of the errors I get when I try to compile is this:

in cmios.h

"...syntax error: token -> '__wparam..."

starting at line 101 which contains:

"extern void MIOS_MIDI_BeginStream(void) __wparam;"

I get a lot of these but it stops at 50.

Posted

Hi jackchaos,

what target do you compile?

are you using the ACSim classes?

maybe Code::Blocks is using GCC and not SDCC, this would explain this error...

hard to say  :-\, can you give some more informations?

cheers,

Michael

Posted

ac

I first tried to follow stryd's instructions on the wiki by incorporating an existing application into the project.

At first it would work fine until I attempted to split my code in separate *.c and *.h files.

From there I was having difficulty compiling without errors.

I will give it another go-around and If I'm not successful, I'll provide better descriptions of the errors.

Thanks

Posted

That documentation is still mostly OK, but the files have old copies of the ACSim, and the new versions of code::blocks behave a little differently... I don't know if I'd trust that doco any more :( I hope it hasn't caused any problems...

Posted

stryd

I wasn't trying to set up ACSim... I just wanted to use Code::Blocks for coding and I tried to break my code up in separate files and I buggered it up.

I'm back to notepad now but I will try again this weekend.

Thanks

  • 2 months later...
Posted

FYI the documentation is updated at last. Code::Blocks changed a lot!

It is now necessary to install mingw and gdb manually rather than using the RC installer which has them included... But it runs better and it's not that hard :)

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...
×
×
  • Create New...