Welcome to Dream.In.Code
Become a C++ Expert!

Join 137,175 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,363 people online right now. Registration is fast and FREE... Join Now!




Compiler variation & Compile-time Debug Solutions

 
Reply to this topicStart new topic

Compiler variation & Compile-time Debug Solutions

baconbeastnz
31 May, 2008 - 02:57 AM
Post #1

New D.I.C Head
*

Joined: 29 May, 2008
Posts: 21

Hi,

I am using VS9 & Codeblocks and have noticed alot of variation iny compiling.

a 100 line code segment, runs fine in VC9 then pulls out XX errors in Codeblocks.

I'm getting frustrated with the vague error messages I'm getting aswell, so far I've had:

last line of code :C:\Users\william\Desktop\m.c:115: error: syntax error at end of input
runetime assertion error
can't find debug/app.exe

Is there anyway to get most specific debug information on either of these apps? I realise a better knowledge in C would allow me to better guess what the problem could be, but I'm sort of having a crash course.
User is offlineProfile CardPM
+Quote Post

mikeblas
RE: Compiler Variation & Compile-time Debug Solutions
31 May, 2008 - 05:36 AM
Post #2

D.I.C Head
**

Joined: 8 Feb, 2008
Posts: 155



Thanked: 1 times
My Contributions
More experience, I guess. There's also online help, which explains what the error means. Of course, online help can't possibly offer prescriptive advice for every situation which can cause a given error.


User is offlineProfile CardPM
+Quote Post

joske
RE: Compiler Variation & Compile-time Debug Solutions
31 May, 2008 - 09:07 AM
Post #3

D.I.C Head
**

Joined: 4 Sep, 2007
Posts: 158



Thanked: 12 times
My Contributions
QUOTE(baconbeastnz @ 31 May, 2008 - 12:57 PM) *

last line of code :C:\Users\william\Desktop\m.c:115: error: syntax error at end of input


From such an error you can know that there is something wrong at line 115 (or probably at line 114), and that it is a syntax error. that is at least an indication on where to find the problem.

User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/4/08 10:43AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month