Eclipse CDT errror [message #894655] |
Tue, 10 July 2012 02:28 |
|
Hi I found a bug in Juno CDT
I have a program called navbox and it has before my main function I #include "modules"
this has all of my other header file (listed first), followed by my other modules.
host.c (my first module)
#include <stdio.h>
#include <stdlib.h>
#include "modules.h"
int main(int argc, char *argv[]){
int datum;
init();
FOREVER {
navbox.h I declare my array with the subscripts defined above.
#define displays 4
#define display_utm_max 16
char display[displays][display_utm_max];
init.c
for( y = 0; y < displays; y++){
for( x = 0; x < display_utm_max; x ++){
display[y][x] = BLANK; ERROR symbol 'display' could not be resolved
printf( "init %d - %d \n", y, x); (this works)
}
}
when I compile my program with gcc using the following command line
gcc -o host.o -pedantic -Wall - Wextra host.c
I get no errors, and my code works
BTW the only way I have gotten this code to work in eclipse is to move my deceleration of display to host.c above my main()
DUH??
oh btw this is a fresh install of LinuxMint 12 /32bit with cinnamon.
|
|
|
Powered by
FUDForum. Page generated in 0.03465 seconds