473,471 Members | 1,881 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Simple program error

Hi,

I using "Dev-C++", yesterday I was install Microsoft Visual Studio .NET 2003
I need it for building python extensions.Since I was install it when I write
some program
in Dev-C++ for example:

#include <iostream>
using namespace std;

int main(){
int z;
z=4;
cout <<z<<endl;
scanf("\n");
return 0;
}
This is error of this program
Error:

[Linker error] undefined reference to `__cpu_features_init'
ld returned 1 exit status
If anybody know how to solve this problem please tell me, I will be very
grateful!!!!!!!


Jul 5 '07 #1
2 2337
....:::JA:::... <ve***********@v-programs.comwrote:
#include <iostream>
using namespace std;

int main(){
int z;
z=4;
cout <<z<<endl;
scanf("\n");
scanf() requires you to #include <stdio.h(or <cstdiosince you are
using namespace std;).

If you are just doing this to pause the screen, you could try

cin.get();

instead, since you are already #including <iostream>.
return 0;
}
--
Marcus Kwok
Replace 'invalid' with 'net' to reply
Jul 5 '07 #2
On 2007-07-05 13:29, ...:::JA:::... wrote:
Hi,

I using "Dev-C++", yesterday I was install Microsoft Visual Studio .NET 2003
I need it for building python extensions.Since I was install it when I write
some program
in Dev-C++ for example:

#include <iostream>
using namespace std;

int main(){
int z;
z=4;
cout <<z<<endl;
scanf("\n");
return 0;
}
This is error of this program
Error:

[Linker error] undefined reference to `__cpu_features_init'
ld returned 1 exit status
If anybody know how to solve this problem please tell me, I will be very
grateful!!!!!!!
Best bet: reinstall Dev-C++.

--
Erik Wikström
Jul 5 '07 #3

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

Similar topics

5
by: Rob Somers | last post by:
Hey all I am writing a program to keep track of expenses and so on - it is not a school project, I am learning C as a hobby - At any rate, I am new to structs and reading and writing to files,...
9
by: c_beginner | last post by:
Dear group, I want to implement a solution to the following link: http://acmicpc-live-archive.uva.es/nuevoportal/data/p2006.pdf As a beginning I am trying to implement this little sample...
2
by: Vitali Gontsharuk | last post by:
Hi! I have a problem programming a simple client-server game, which is called pingpong ;-) The final program will first be started as a server (nr. 2) and then as a client. The client then...
23
by: Marco | last post by:
Could anyone please tell me why the program has the following error? I copy the program from http://www.beyondlogic.org/parlcd/parlcd.htm ...
8
by: Eric_Dexter | last post by:
I was looking for a simple way to load a simple python program from another python program. I tried os.system(cabel) The file name is cabel.py a csound instrument editor.. The error I am...
26
by: jacob navia | last post by:
Summary: I have changed (as proposed by Chuck) the code to use isalpha() instead of (c>='a' && c <= 'z') etc. I agree that EBCDIC exists :-) I eliminated the goto statement, obviously it is...
8
by: ftjonsson | last post by:
hello, I was wondering if anyone could tips me on what I am doing wrong when writing the following code: #include <iostream> using namespace std; int main () {
4
by: =?Utf-8?B?Y2FsZGVyYXJh?= | last post by:
Dear all, Until now I was programing for more that 6 years using VB.net simply because I come from that word and used to. Now I need to switch to C# simply because my customer want its project...
1
by: jerry | last post by:
i have written a simple phonebook program,i'll show you some of the codes,the program's head file is member.h . i suppose the head file works well.so i don't post it. here's the clips of main...
17
by: Chris M. Thomasson | last post by:
I use the following technique in all of my C++ projects; here is the example code with error checking omitted for brevity: _________________________________________________________________ /*...
0
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...
0
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,...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
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.