Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse CDT errror
Eclipse CDT errror [message #894655] Tue, 10 July 2012 02:28
Cris Harrison is currently offline Cris HarrisonFriend
Messages: 13
Registered: July 2012
Location: Fort Worth, Texas
Junior Member
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.
Previous Topic:C programs don't run in interactive mode in CDT
Next Topic:compiler error
Goto Forum:
  


Current Time: Thu Apr 25 10:30:07 GMT 2024

Powered by FUDForum. Page generated in 0.03465 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top