473,804 Members | 2,998 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

annoying warning message from g++ compiler

Hello all

I've just upgraded my g++ compiler to 3.3.3 on Cygwin.
But there is always a annoying warnig message "no new line at end of
file" no matter what code you writes.

How to get rid of that warnig message ?

Jul 23 '05 #1
2 2112
Teddy wrote:
Hello all

I've just upgraded my g++ compiler to 3.3.3 on Cygwin.
But there is always a annoying warnig message "no new line at end of
file" no matter what code you writes.

How to get rid of that warnig message ?


1) Open the file in an editor.
2) Position the cursor at the end of the last
line in the file.
3) Press the Return/Enter key
4) Save the file (whose last line now ends
with a newline).
This warning advises you that the file does not end
with a newline; so the compiler assumes that the
file might have been corrupted (e.g. might be incomplete).

Regards,
Larry
Jul 23 '05 #2
got it

Thanks Larry :)

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
1802
by: Elbert Lev | last post by:
# here is the problem I ran into: class foo: def __init__(self, host): self.f() self.r = True def f(self): if self.r: #<do something>
3
1990
by: Bryan Parkoff | last post by:
I tell C++ Compiler to use level 4 warning instead of level 3 warning so all variables can be calculated accuracy with no prone error. It will give you a warning like this. unsigned short A = 0x8002; unsigned short B = 0x7FFF; unsigned short C = 0; C = A + B; // Warning loss high byte conversion -- 0x8002 + 0x7FFF = 0x10002
27
4773
by: MK | last post by:
I am a newbie. Please help. The following warning is issued by gcc-3.2.2 compiler (pc Linux): ================================================================== read_raw_data.c:51: warning: assignment makes pointer from integer without a cast ================================================================== when the following piece of code was compiled. The offending statement is calloc. A similar statement in the main() function...
29
2530
by: junky_fellow | last post by:
Consider the following piece of code: struct junk { int i_val; int i_val1; char c_val; }; int main(void) {
52
5222
by: Michael Hopkins | last post by:
Hi all We all know that C++ is a cleverly conceived multi-paradigm language that sacrifices very little in efficiency for what it delivers in terms of type-safety, encapsulation and generic behaviour. What I want to ask here is - what are the features that people most dislike about it i.e. that: - make it more difficult than necessary to implement designs
2
2871
by: BSeab1024SE | last post by:
In MS Visual C++ some code I wrote generated the warning "conversion from 'int' to 'const float', possible loss of data." In the process of trying to determine if I could rewrite the code to eliminate the warning I noticed that the following code did not generate any warning... int x = 1024; char y = x;
29
1937
by: Bob | last post by:
Hi, I have been trying to use some inventive alternative idioms for infinite loops in my code, rather than the same old for(;;) and while(1) - this could be a nice amusing Easter-egg for any future maintenance programmers! One of my ideas was this: unsigned u = SHRT_MAX << 2; // misleading initialization - tee hee!
1
1451
by: Spin | last post by:
Hi, Every time I use a hyperlink field (a field defined as a hyperlink) that leaves the Access Database for either another database or other MS application Access gives me this annoying warning message saying that links should be used only on trusted sites. I would like to turn this message off. I already changed my security from Medium to Low to avoid the usual other warning messages. I also know about the Set Warnings macro command for...
10
13267
by: asm23 | last post by:
Hi, I'm using Intel C++ compiler 9 to compiler a project. But, there are a lot of warning saying like "virtual function override intended....". I searched old messages in Google groups, someone already talk about this issue. But I still confused.. This is the simple test code I copied from these messages //////////////////////////////////////////////////////////////////// class Base { virtual void foo(); //*position A* };
0
9579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10578
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9152
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5522
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.