Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- travis@gigabox ~/Projects/cs133u/papodaca/assignments/Lab11 $ colorgcc -Wall -std=c99 p.c -o p-compile
- p.c:23:40: warning: ‘struct wordList’ declared inside parameter list [enabled by default]
- p.c:23:40: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
- p.c:24:29: warning: ‘struct wordList’ declared inside parameter list [enabled by default]
- p.c: In function ‘main’:
- p.c:52:34: error: invalid type argument of unary ‘*’ (have ‘int’)
- p.c:52:2: error: type of formal parameter 2 is incomplete
- p.c:53:2: warning: implicit declaration of function ‘print_wordStruct’ [-Wimplicit-function-declaration]
- p.c:53:28: error: invalid type argument of unary ‘*’ (have ‘int’)
- p.c: At top level:
- p.c:82:5: error: conflicting types for ‘buildStruct’
- p.c:23:5: note: previous declaration of ‘buildStruct’ was here
- p.c: In function ‘buildStruct’:
- p.c:82:41: error: parameter name omitted
- p.c:107:15: error: ‘wordsCounted’ undeclared (first use in this function)
- p.c:107:15: note: each undeclared identifier is reported only once for each function it appears in
- p.c: At top level:
- p.c:129:54: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
- the one ive been working on
- travis@gigabox ~/Projects/cs133u/papodaca/assignments/Lab11/testcompiles $ colorgcc -Wall -std=c99 c.c -o c-compile
- c.c: In function ‘main’:
- c.c:71:2: warning: implicit declaration of function ‘print_wordStruct’ [-Wimplicit-function-declaration]
- c.c: In function ‘openFile’:
- c.c:103:4: error: ‘inputFile’ undeclared (first use in this function)
- c.c:103:4: note: each undeclared identifier is reported only once for each function it appears in
- c.c:111:5: warning: return makes pointer from integer without a cast [enabled by default]
- c.c:93:8: warning: unused variable ‘fileName’ [-Wunused-variable]
- c.c:89:8: warning: unused variable ‘inputfile’ [-Wunused-variable]
- c.c: At top level:
- c.c:138:1: error: expected identifier or ‘(’ before ‘{’ token
- c.c:219:51: error: expected declaration specifiers or ‘...’ before ‘&’ token
- c.c: In function ‘openFile’:
- c.c:120:1: warning: control reaches end of non-void function [-Wreturn-type]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement