Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » After building I get strange errors
icon5.gif  After building I get strange errors [message #989353] Wed, 05 December 2012 19:37 Go to next message
Michael Eimer is currently offline Michael EimerFriend
Messages: 5
Registered: December 2012
Junior Member
Hi!

I have been searching the internet for answers for three days, no results.

My project is pretty big as well as mt compant doesnn't allow it so it's impossible to show you all the code.

I'm using Juno with CDT. After building I get over 700 crazy errors, then I build again and there are "only" 500 left. I did it again and there are finally 24 errors:

Description Resource Path Location Type
'__STRING' was not declared in this scope CommunicationLayerUDPClient.h /CommunicationLayer line 47 C/C++ Problem
'__assert_fail' was not declared in this scope CommunicationLayerUDPClient.h /CommunicationLayer line 47 C/C++ Problem
field 'hints' has incomplete type CommunicationLayer.h /CommunicationLayer line 72 C/C++ Problem
'__assert_fail' was not declared in this scope CommunicationLayerUDPClient.h /CommunicationLayer line 42 C/C++ Problem
no return statement in function returning non-void [-Wreturn-type] CommunicationLayerUDPClient.h /CommunicationLayer line 43 C/C++ Problem
no return statement in function returning non-void [-Wreturn-type] CommunicationLayerUDPClient.h /CommunicationLayer line 48 C/C++ Problem
field 'sendAddress' has incomplete type CommunicationLayerUDPClient.h /CommunicationLayer line 51 C/C++ Problem
no return statement in function returning non-void [-Wreturn-type] CommunicationLayerUDPClient.h /CommunicationLayer line 34 C/C++ Problem
'__STRING' was not declared in this scope CommunicationLayerUDPClient.h /CommunicationLayer line 42 C/C++ Problem
'__STRING' was not declared in this scope CommunicationLayerUDPClient.h /CommunicationLayer line 33 C/C++ Problem
'__assert_fail' was not declared in this scope CommunicationLayerUDPClient.h /CommunicationLayer line 33 C/C++ Problem
#error "Never use <bits/string.h> directly; include <string.h> instead." TrafficLightAssistGD line 21, external location: /usr/include/x86_64-linux-gnu/bits/string.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 158, external location: /usr/include/x86_64-linux-gnu/sys/types.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 70, external location: /usr/include/x86_64-linux-gnu/sys/socket.h C/C++ Problem
#error "Never include <bits/netdb.h> directly; use <netdb.h> instead." TrafficLightAssistGD line 20, external location: /usr/include/x86_64-linux-gnu/bits/netdb.h C/C++ Problem
Invalid project path: Include path not found (/home/michael/workspace/tla/TrafficLightAssistGD/Debug/usr/local/include/google). TrafficLightAssistGD pathentry Path Entry Problem
Invalid project path: Include path not found (/home/michael/workspace/tla/TrafficLightAssistGD/Debug/usr/include). TrafficLightAssistGD pathentry Path Entry Problem
#error "Never include <bits/stdio.h> directly; use <stdio.h> instead." TrafficLightAssistGD line 21, external location: /usr/include/x86_64-linux-gnu/bits/stdio.h C/C++ Problem
Invalid project path: Duplicate path entries found (/TrafficLightAssistGD [Include path] isSystemInclude:true includePath:/usr/local/include), path: [/TrafficLightAssistGD]. TrafficLightAssistGD pathentry Path Entry Problem
fatal error: CarGUI.h: No such file or directory CAR_Data.h /CarData line 16 C/C++ Problem
Class 'CommunicationLayerUDPClient' has virtual method 'closeConnection' but non-virtual destructor CommunicationLayerUDPClient.h /CommunicationLayer line 16 Code Analysis Problem
#error "Never use <bits/endian.h> directly; include <endian.h> instead." TrafficLightAssistGD line 4, external location: /usr/include/x86_64-linux-gnu/bits/endian.h C/C++ Problem
No return, in function returning non-void CommunicationLayerUDPClient.h /CommunicationLayer line 30 Code Analysis Problem
#error "Never include <bits/sched.h> directly; use <sched.h> instead." TrafficLightAssistGD line 25, external location: /usr/include/x86_64-linux-gnu/bits/sched.h C/C++ Problem
#error "Never include <bits/stdlib.h> directly; use <stdlib.h> instead." TrafficLightAssistGD line 21, external location: /usr/include/x86_64-linux-gnu/bits/stdlib.h C/C++ Problem
#error "Never use <bits/locale.h> directly; include <locale.h> instead." TrafficLightAssistGD line 21, external location: /usr/include/x86_64-linux-gnu/bits/locale.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 108, external location: /usr/include/assert.h C/C++ Problem
#include nested too deeply TrafficLightAssistGD line 1, external location: /usr/include/x86_64-linux-gnu/sys/signal.h C/C++ Problem
No return, in function returning non-void CommunicationLayerUDPClient.h /CommunicationLayer line 40 Code Analysis Problem
#include nested too deeply TrafficLightAssistGD line 1, external location: /usr/include/x86_64-linux-gnu/sys/unistd.h C/C++ Problem
No return, in function returning non-void CommunicationLayerUDPClient.h /CommunicationLayer line 45 Code Analysis Problem
missing binary operator before token "(" TrafficLightAssistGD line 39, external location: /usr/include/assert.h C/C++ Problem
#include nested too deeply TrafficLightAssistGD line 1, external location: /usr/include/x86_64-linux-gnu/sys/errno.h C/C++ Problem
Invalid project path: Include path not found (WebMap/src/CommunicationLayer). WebMap pathentry Path Entry Problem
Invalid project path: Include path not found (WebMap/IntersectionData). WebMap pathentry Path Entry Problem
Invalid project path: Include path not found (WebMap/CarData). WebMap pathentry Path Entry Problem
fatal error: Definition.h: No such file or directory MAP_Data.h /TrafficLightAssistGD/src/IntersectionData line 10 C/C++ Problem
Class 'CommunicationLayer' has virtual method 'checkConnection' but non-virtual destructor CommunicationLayer.h /CommunicationLayer line 41 Code Analysis Problem


I don't get any sense out of these errors. I've never changed the header files!

Please help me! I got now idea what to do!

Michael
Re: After building I get strange errors [message #989758 is a reply to message #989353] Fri, 07 December 2012 15:36 Go to previous messageGo to next message
Eclipse hates me ! is currently offline Eclipse hates me !Friend
Messages: 10
Registered: September 2012
Junior Member
Missing bracket somewhere?
Re: After building I get strange errors [message #989766 is a reply to message #989758] Fri, 07 December 2012 16:18 Go to previous messageGo to next message
Michael Eimer is currently offline Michael EimerFriend
Messages: 5
Registered: December 2012
Junior Member
It says the braket is missing in a header file. That's nonsense to me.

But is it possible?
Re: After building I get strange errors [message #989768 is a reply to message #989766] Fri, 07 December 2012 16:19 Go to previous messageGo to next message
Michael Eimer is currently offline Michael EimerFriend
Messages: 5
Registered: December 2012
Junior Member

make: *** [src/UserInput/UserInputProcessing.o] Error 1 TrafficLightAssistGD

Maybe this is the one which causes all the trouble?
Re: After building I get strange errors [message #989769 is a reply to message #989766] Fri, 07 December 2012 16:20 Go to previous messageGo to next message
Eclipse hates me ! is currently offline Eclipse hates me !Friend
Messages: 10
Registered: September 2012
Junior Member
It could be in your file right before it includes a system header or some other file includes both of them.
Re: After building I get strange errors [message #989773 is a reply to message #989769] Fri, 07 December 2012 16:47 Go to previous messageGo to next message
Michael Eimer is currently offline Michael EimerFriend
Messages: 5
Registered: December 2012
Junior Member
Thanks for the tipp! I'll check on it.
Re: After building I get strange errors [message #989791 is a reply to message #989773] Fri, 07 December 2012 19:43 Go to previous messageGo to next message
Michael Eimer is currently offline Michael EimerFriend
Messages: 5
Registered: December 2012
Junior Member
Somehow I reduced the errors to 108. But still there are some in external header files. I don't get the sense out of it. In one file I included math.h, it sees the function (e.g. sin) but no constants like M_PI. Maybe I messed the build properties up..


Description Resource Path Location Type
missing binary operator before token "(" TrafficLightAssistGD line 280, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 270, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 258, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 249, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 240, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 233, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 224, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 162, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 363, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 356, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 351, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 342, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 319, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 311, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 297, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 289, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 61, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 149, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 43, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 56, external location: /usr/include/i386-linux-gnu/sys/cdefs.h C/C++ Problem
'FILE' does not name a type TrafficLightAssistGD line 273, external location: /usr/include/stdio.h C/C++ Problem
'__stream' was not declared in this scope TrafficLightAssistGD line 243, external location: /usr/include/stdio.h C/C++ Problem
variable or field 'setbuf' declared void TrafficLightAssistGD line 333, external location: /usr/include/stdio.h C/C++ Problem
'FILE' does not name a type TrafficLightAssistGD line 279, external location: /usr/include/stdio.h C/C++ Problem
'FILE' was not declared in this scope TrafficLightAssistGD line 238, external location: /usr/include/stdio.h C/C++ Problem
'FILE' does not name a type TrafficLightAssistGD line 196, external location: /usr/include/stdio.h C/C++ Problem
'FILE' was not declared in this scope TrafficLightAssistGD line 243, external location: /usr/include/stdio.h C/C++ Problem
'__stream' was not declared in this scope TrafficLightAssistGD line 238, external location: /usr/include/stdio.h C/C++ Problem
expected primary-expression before 'char' TrafficLightAssistGD line 337, external location: /usr/include/stdio.h C/C++ Problem
variable 'bmw_last_FUEL_amount' set but not used [-Wunused-but-set-variable] CAN_Handler.cpp /CarData line 154 C/C++ Problem
expected primary-expression before '__restrict' TrafficLightAssistGD line 337, external location: /usr/include/stdio.h C/C++ Problem
variable 'bmw_Acceleration_qualifier' set but not used [-Wunused-but-set-variable] CAN_Handler.cpp /CarData line 145 C/C++ Problem
'size_t' was not declared in this scope TrafficLightAssistGD line 338, external location: /usr/include/stdio.h C/C++ Problem
expected primary-expression before 'int' TrafficLightAssistGD line 338, external location: /usr/include/stdio.h C/C++ Problem
expected primary-expression before '__restrict' TrafficLightAssistGD line 333, external location: /usr/include/stdio.h C/C++ Problem
'FILE' was not declared in this scope TrafficLightAssistGD line 333, external location: /usr/include/stdio.h C/C++ Problem
'FILE' was not declared in this scope TrafficLightAssistGD line 337, external location: /usr/include/stdio.h C/C++ Problem
expected primary-expression before 'char' TrafficLightAssistGD line 333, external location: /usr/include/stdio.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 133, external location: /usr/include/i386-linux-gnu/bits/sched.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 171, external location: /usr/include/i386-linux-gnu/bits/sched.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 39, external location: /usr/include/assert.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 108, external location: /usr/include/assert.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 37, external location: /usr/include/string.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 158, external location: /usr/include/i386-linux-gnu/sys/types.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 70, external location: /usr/include/i386-linux-gnu/sys/socket.h C/C++ Problem
missing binary operator before token "(" TrafficLightAssistGD line 75, external location: /usr/include/wchar.h C/C++ Problem
'size_t' was not declared in this scope TrafficLightAssistGD line 338, external location: /usr/include/libio.h C/C++ Problem
'size_t' has not been declared TrafficLightAssistGD line 366, external location: /usr/include/libio.h C/C++ Problem
'size_t' has not been declared TrafficLightAssistGD line 375, external location: /usr/include/libio.h C/C++ Problem
'size_t' does not name a type TrafficLightAssistGD line 497, external location: /usr/include/libio.h C/C++ Problem
'__BEGIN_DECLS' does not name a type TrafficLightAssistGD line 30, external location: /usr/include/stdio.h C/C++ Problem
'__BEGIN_NAMESPACE_STD' does not name a type TrafficLightAssistGD line 47, external location: /usr/include/stdio.h C/C++ Problem
'__END_NAMESPACE_STD' does not name a type TrafficLightAssistGD line 50, external location: /usr/include/stdio.h C/C++ Problem
'size_t' does not name a type TrafficLightAssistGD line 334, external location: /usr/include/libio.h C/C++ Problem
'FILE' has not been declared TrafficLightAssistGD line 686, external location: /usr/include/stdio.h C/C++ Problem
comparison between signed and unsigned integer expressions [-Wsign-compare] RecordingArea.cpp /CarData line 153 C/C++ Problem
'FILE' has not been declared TrafficLightAssistGD line 628, external location: /usr/include/stdio.h C/C++ Problem
'FILE' has not been declared TrafficLightAssistGD line 580, external location: /usr/include/stdio.h C/C++ Problem
'FILE' has not been declared TrafficLightAssistGD line 579, external location: /usr/include/stdio.h C/C++ Problem
'__stream' was not declared in this scope TrafficLightAssistGD line 538, external location: /usr/include/stdio.h C/C++ Problem
'FILE' was not declared in this scope TrafficLightAssistGD line 538, external location: /usr/include/stdio.h C/C++ Problem
'__stream' was not declared in this scope TrafficLightAssistGD line 537, external location: /usr/include/stdio.h C/C++ Problem
'FILE' was not declared in this scope TrafficLightAssistGD line 537, external location: /usr/include/stdio.h C/C++ Problem
variable 'lat' set but not used [-Wunused-but-set-variable] simclient.cc /WebMap/src line 295 C/C++ Problem
expression list treated as compound expression in initializer [-fpermissive] TrafficLightAssistGD line 746, external location: /usr/include/stdio.h C/C++ Problem
unused variable 'line' [-Wunused-variable] simclient.cc /WebMap/src line 228 C/C++ Problem
expected primary-expression before 'int' TrafficLightAssistGD line 746, external location: /usr/include/stdio.h C/C++ Problem
comparison between signed and unsigned integer expressions [-Wsign-compare] simclient.cc /WebMap/src line 249 C/C++ Problem
expected primary-expression before 'long' TrafficLightAssistGD line 746, external location: /usr/include/stdio.h C/C++ Problem
'__stream' was not declared in this scope TrafficLightAssistGD line 746, external location: /usr/include/stdio.h C/C++ Problem
'FILE' was not declared in this scope TrafficLightAssistGD line 746, external location: /usr/include/stdio.h C/C++ Problem
'size_t' does not name a type TrafficLightAssistGD line 712, external location: /usr/include/stdio.h C/C++ Problem
unused variable 'arcs' [-Wunused-variable] simclient.cc /WebMap/src line 394 C/C++ Problem
'size_t' does not name a type TrafficLightAssistGD line 706, external location: /usr/include/stdio.h C/C++ Problem
variable 'lon' set but not used [-Wunused-but-set-variable] simclient.cc /WebMap/src line 295 C/C++ Problem
'FILE' has not been declared TrafficLightAssistGD line 699, external location: /usr/include/stdio.h C/C++ Problem
'FILE' was not declared in this scope TrafficLightAssistGD line 372, external location: /usr/include/stdio.h C/C++ Problem
expected primary-expression before '__restrict' TrafficLightAssistGD line 372, external location: /usr/include/stdio.h C/C++ Problem
expected primary-expression before '...' token TrafficLightAssistGD line 358, external location: /usr/include/stdio.h C/C++ Problem
expression list treated as compound expression in initializer [-fpermissive] TrafficLightAssistGD line 358, external location: /usr/include/stdio.h C/C++ Problem
expected primary-expression before '__restrict' TrafficLightAssistGD line 357, external location: /usr/include/stdio.h C/C++ Problem
expected primary-expression before '__const' TrafficLightAssistGD line 358, external location: /usr/include/stdio.h C/C++ Problem
expression list treated as compound expression in initializer [-fpermissive] TrafficLightAssistGD line 338, external location: /usr/include/stdio.h C/C++ Problem
'FILE' was not declared in this scope TrafficLightAssistGD line 357, external location: /usr/include/stdio.h C/C++ Problem
expected primary-expression before '...' token TrafficLightAssistGD line 432, external location: /usr/include/stdio.h C/C++ Problem
expression list treated as compound expression in initializer [-fpermissive] TrafficLightAssistGD line 432, external location: /usr/include/stdio.h C/C++ Problem
expected primary-expression before '__restrict' TrafficLightAssistGD line 431, external location: /usr/include/stdio.h C/C++ Problem
expected primary-expression before '__const' TrafficLightAssistGD line 432, external location: /usr/include/stdio.h C/C++ Problem
expression list treated as compound expression in initializer [-fpermissive] TrafficLightAssistGD line 373, external location: /usr/include/stdio.h C/C++ Problem
'FILE' was not declared in this scope TrafficLightAssistGD line 431, external location: /usr/include/stdio.h C/C++ Problem
expected primary-expression before '__const' TrafficLightAssistGD line 372, external location: /usr/include/stdio.h C/C++ Problem
expected primary-expression before '__arg' TrafficLightAssistGD line 373, external location: /usr/include/stdio.h C/C++ Problem
Class 'CommunicationLayer' has virtual method 'checkConnection' but non-virtual destructor CommunicationLayer.h /CommunicationLayer line 41 Code Analysis Problem
expected declaration before '}' token TrafficLightAssistGD line 940, external location: /usr/include/stdio.h C/C++ Problem
'__stream' was not declared in this scope TrafficLightAssistGD line 825, external location: /usr/include/stdio.h C/C++ Problem
'FILE' was not declared in this scope TrafficLightAssistGD line 825, external location: /usr/include/stdio.h C/C++ Problem
expected primary-expression before ')' token main.cpp /VCA_Basic line 43 C/C++ Problem
'__stream' was not declared in this scope TrafficLightAssistGD line 827, external location: /usr/include/stdio.h C/C++ Problem
'FILE' was not declared in this scope TrafficLightAssistGD line 827, external location: /usr/include/stdio.h C/C++ Problem
invalid conversion from 'const char*' to 'char' [-fpermissive] main.cpp /VCA_Basic line 31 C/C++ Problem
invalid conversion from 'const char*' to 'char' [-fpermissive] main.cpp /VCA_Basic line 32 C/C++ Problem
'__stream' was not declared in this scope TrafficLightAssistGD line 756, external location: /usr/include/stdio.h C/C++ Problem
'FILE' was not declared in this scope TrafficLightAssistGD line 795, external location: /usr/include/stdio.h C/C++ Problem
expected primary-expression before '__restrict' TrafficLightAssistGD line 795, external location: /usr/include/stdio.h C/C++ Problem
expected primary-expression before '*' token TrafficLightAssistGD line 795, external location: /usr/include/stdio.h C/C++ Problem
'FILE' was not declared in this scope TrafficLightAssistGD line 751, external location: /usr/include/stdio.h C/C++ Problem
'__stream' was not declared in this scope TrafficLightAssistGD line 751, external location: /usr/include/stdio.h C/C++ Problem
variable or field 'rewind' declared void TrafficLightAssistGD line 756, external location: /usr/include/stdio.h C/C++ Problem
'FILE' was not declared in this scope TrafficLightAssistGD line 756, external location: /usr/include/stdio.h C/C++ Problem
Class 'CommunicationLayerTCP' has virtual method 'closeConnection' but non-virtual destructor CommunicationLayerTCP.h /CommunicationLayer line 12 Code Analysis Problem
expression list treated as compound expression in initializer [-fpermissive] TrafficLightAssistGD line 800, external location: /usr/include/stdio.h C/C++ Problem
variable or field 'clearerr' declared void TrafficLightAssistGD line 823, external location: /usr/include/stdio.h C/C++ Problem
'FILE' was not declared in this scope TrafficLightAssistGD line 823, external location: /usr/include/stdio.h C/C++ Problem
'__stream' was not declared in this scope TrafficLightAssistGD line 823, external location: /usr/include/stdio.h C/C++ Problem
expression list treated as compound expression in initializer [-fpermissive] TrafficLightAssistGD line 795, external location: /usr/include/stdio.h C/C++ Problem
'FILE' was not declared in this scope TrafficLightAssistGD line 800, external location: /usr/include/stdio.h C/C++ Problem
'__stream' was not declared in this scope TrafficLightAssistGD line 800, external location: /usr/include/stdio.h C/C++ Problem
expected primary-expression before '__const' TrafficLightAssistGD line 800, external location: /usr/include/stdio.h C/C++ Problem
Member 'timestamp_received' was not initialized in this constructor DynamicIntersectionData.h /TrafficLightAssistGD/src/IntersectionData line 48 Code Analysis Problem
Member 'timestamp_prediction' was not initialized in this constructor DynamicIntersectionData.h /TrafficLightAssistGD/src/IntersectionData line 48 Code Analysis Problem
Member 'timestamp' was not initialized in this constructor DynamicIntersectionData.h /TrafficLightAssistGD/src/IntersectionData line 48 Code Analysis Problem
Class 'CommunicationLayerTCPClient' has virtual method 'closeConnection' but non-virtual destructor CommunicationLayerTCPClient.h /CommunicationLayer line 18 Code Analysis Problem
Re: After building I get strange errors [message #1735664 is a reply to message #989791] Tue, 21 June 2016 18:17 Go to previous messageGo to next message
Honig Law is currently offline Honig LawFriend
Messages: 1
Registered: June 2016
Junior Member
HI Michael,

I got similar problems:

expected ')' before 'int' line 68, external location: \usr\include\stdlib.h C/C++ Problem
expected unqualified-id before 'int' line 68, external location: \usr\include\stdlib.h C/C++ Problem

Did you figure out how to solve these problem related to "external" files (stdlib.h)?

Thank you in advance!
Re: After building I get strange errors [message #1735808 is a reply to message #1735664] Wed, 22 June 2016 21:09 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Problems like these are usually caused by syntax errors preceding the include. Often a missing ')' or '}' or an extra '(' or extra '{'. Sometimes a missing quote. If the syntax error is in an included header file (your header file -- not a system one) then it will tend to multiply the errors seen. They can be tough to find.

Try commenting out code starting at the top of your source file and moving the comment down line by line until your locate the problem.

Use #if 0 and #endif rather than actual comments.

This isn't a CDT issue. It's a programming one.




Previous Topic:This Should Be Blindingly Obvious
Next Topic:debug function trace disappeared
Goto Forum:
  


Current Time: Thu Apr 18 23:39:23 GMT 2024

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

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

Back to the top