Author Topic: strictly stop the compiler after error  (Read 3689 times)

Offline benkenobi01

  • Multiple posting newcomer
  • *
  • Posts: 64
strictly stop the compiler after error
« on: April 25, 2011, 12:22:16 pm »
hello
when i was compiling a simple code like this:
Code
char foo[2] = "My string";
and using a single file (and not a project) , the compiler would always stop and tell me overflow error, now i've build a project where i put all my single c files , the problem is now it will adress me the error (in the window) but if i rebuild the error message is gone and it just says:


Code
-------------- Build: strncpy.c in many_stuff ---------------

Target is up to date.
Nothing to be done.


how can i get this back ?
thanks
« Last Edit: April 25, 2011, 12:33:58 pm by benkenobi01 »

Offline benkenobi01

  • Multiple posting newcomer
  • *
  • Posts: 64
Re: strictly stop the compiler after error
« Reply #1 on: April 25, 2011, 12:28:55 pm »
this is the exact error i would get:
Code
warning: initializer-string for array of chars is too long|

« Last Edit: April 25, 2011, 12:30:28 pm by benkenobi01 »

Offline benkenobi01

  • Multiple posting newcomer
  • *
  • Posts: 64
Re: strictly stop the compiler after error
« Reply #2 on: April 25, 2011, 12:35:45 pm »
mmh rebuilding the project file again and again would do the trick

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: strictly stop the compiler after error
« Reply #3 on: April 25, 2011, 12:48:46 pm »
It's a warning in your project, not an error.
The compiler does not stop at warnings (obviously), so you should check your compiler settings (on project- or target-base), if you want to get an error here.

Offline benkenobi01

  • Multiple posting newcomer
  • *
  • Posts: 64
Re: strictly stop the compiler after error
« Reply #4 on: April 25, 2011, 04:55:10 pm »
all right, everything back in order.  :D