0

So I am making my Hello world program, and it is like this:

#include "lib-includes/capi324v221.h" 

void CBOT_main(void)
{   
    LCD_open();

    if (!LCD_OPEN) {

        while (true); // loop forever   
    }

    else {
        LCD_printf("Hello, World!");
        while(true); // loop forever
    }   
}

Can anyone help with this? I am sorry if it is a little vague; it is all the info I know for the most part.

Some programmer dude
  • 400,186
  • 35
  • 402
  • 621
scrat101
  • 89
  • 1
  • 2
  • 8
  • Just to clear up, I am programming CEENBots, which use Atmel-based processors. – scrat101 Aug 29 '12 at 02:43
  • Maybe you could say what the problem is? Doesn't it print on the display? Doesn't compile (in which case you should provide the errors)? Something else completely? It's kind of hard to help you when you don't say what is wrong. – Some programmer dude Aug 29 '12 at 02:47
  • @scrat101: did my answer below solve your problem? If so could you accept it as an answer? – pauluss86 Aug 31 '12 at 00:50
  • It's a good answer. My project name was Hello, World!. I can see the space and exclamation marks being the issue. Besides, my techie friend of mine said the same thing when I asked him if what you said was true. Time to fire up my laptop and fix the issue. Thanks! – scrat101 Sep 01 '12 at 20:45

1 Answers1

4

First of all what are those while loops doing there? My first reaction is to get rid of those.

I have no personal experience with programming CEENBots\your IDE, but based on the error description in the question title I suspect your source file has a ! in it which messes up the build process (it complains about a World!.map file, best to keep special characters out of filenames).

edit: To extend upon what Öö Tiib states below, get rid of the space and comma too :)

pauluss86
  • 454
  • 6
  • 9
  • +1 More likely the problem is because of a space in file name like "Hello World!.cpp", but your answer seems to be useful anyway. ;) – Öö Tiib Aug 29 '12 at 04:13