Error 1 Array Type Has Incomplete Element Type
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies error array type has incomplete element type struct of this site About Us Learn more about Stack Overflow the company
Error Array Type Has Incomplete Element Type In C
Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges array type has incomplete element type extern struct Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a
Array Type Has Incomplete Element Type Struct
minute: Sign up Error: Array type has incomplete element type and binary operand error up vote 0 down vote favorite I am trying to make a multi-program database in C. Here is the code: #include
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the
Array Has Incomplete Element Type Char
workings and policies of this site About Us Learn more about
Array Type Has Incomplete Element Type Char
Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions incomplete array Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. http://stackoverflow.com/questions/18292248/error-array-type-has-incomplete-element-type-and-binary-operand-error Join them; it only takes a minute: Sign up C Compile Error: array type has incomplete element type up vote 3 down vote favorite #include
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site http://askubuntu.com/questions/572404/error-running-make-array-type-has-incomplete-element-type About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is http://cboard.cprogramming.com/c-programming/137733-array-type-has-incomplete-element-type.html a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best has incomplete answers are voted up and rise to the top Error running make - array type has incomplete element type up vote 0 down vote favorite I am trying to install libbow library. When i run make file the following error is generated gcc -c -Ibow -I. -I./argp -DHAVE_LIBNSL=1 -DHAVE_STRERROR=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_RANDOM=1 -DHAVE_SRANDOM=1 -DHAVE_SETENV=1 -DHAVE_STRCHR=1 -DHAVE_STRRCHR=1 -DHAVE_ALLOCA_H=1 -g -O -Wall -Wimplicit -o array.o array.c In file included from has incomplete element array.c:22: ./bow/libbow.h:2128: error: array type has incomplete element type make: *** [array.o] Error 1 The Source of libbow is :http://www.cs.cmu.edu/~mccallum/bow/src/ (The latest version) Search results showed it as a compiler problem. How to resolve this? Or is there any other source for libbow? gcc make makefile share|improve this question asked Jan 11 '15 at 7:58 DDR 1013 Which version of gcc are you using? –ztik Jan 15 '15 at 9:38 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote The error points line 2128 of bow/libbow.h extern struct argp_child bow_argp_children[]; It means that struct argp_child is not defined. I noticed that in line 1346 there is a forward declaration of the structure. struct argp_child; /* forward declare this type */ The full declaration of the structure is in line 245 of argp/argp.h To resolve this issue you can either Use include of argp.h in libbow.h i.e #include "../argp/argp.h" Copy struct argp_child definition in libbow.h (not recommended) An other thought is that you might compiling array.c from wrong directory and -Ibow -I. -I./argp does not point to the correct directories. share|improve this answer answered Jan 15 '15 at 9:56 ztik 28618 add
Programming Boards C Programming array type has incomplete element type Getting started with C or C++ | C Tutorial | C++ Tutorial | C and C++ FAQ | Get a compiler | Fixes for common problems Thread: array type has incomplete element type Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 05-06-2011 #1 philgrek View Profile View Forum Posts Registered User Join Date Feb 2011 Posts 42 array type has incomplete element type Im down to a deadline and need to solve the problems with this code. When compiling its giving me the errors: [12:22:05][peg002@lnxAcadShell01][/home/peg002/LAB4]+ make cc -c -o lib/SelectionSort.o lib/SelectionSort.c lib/SelectionSort.c:6: error: array type has incomplete element type lib/SelectionSort.c:6: warning: âstruct employeeâ declared inside parameter list lib/SelectionSort.c:6: warning: its scope is only this definition or declaration, which is probably not what you want lib/SelectionSort.c: In function âSelectionSortâ: lib/SelectionSort.c:9: error: array type has incomplete element type make: *** [lib/SelectionSort.o] Error 1 Code: #include