[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

GCC (MinGW) won't compile (error)

Asked by travisjbennett in C Programming Language, Windows Programming, Windows 7

Tags: MinGW, Windows 7 x64, AMD64

I'm trying to start programming in C, and I have some sample source code that I know should be good. It is in the code section below.

When I try to compile it using MinGW, using the commands below, it fails as shown below. I put C:\MinGW\bin\ in the path so I could do this with the desktop as the current directory. I used the autoinstaller "MinGW-5.1.4.exe" to install it. Any ideas how to fix the error message shown below, and get it to compile?



---Command Window---
C:\Users\Administrator>cd desktop

C:\Users\Administrator\Desktop>dir
 Volume in drive C has no label.
 Volume Serial Number is ####-####

 Directory of C:\Users\Administrator\Desktop

08/30/2009  01:35 AM    <DIR>          .
08/30/2009  01:35 AM    <DIR>          ..
08/25/2009  10:41 AM             2,007 Classes.lnk
08/28/2009  05:01 PM            32,098 homework0fa09.pdf
08/30/2009  02:18 PM               155 myFile.c
...
               4 File(s)         35,802 bytes
               8 Dir(s)  107,238,281,216 bytes free

C:\Users\Administrator\Desktop>gcc -std=c99 myFile.c -o myFile.exe
C:\Users\ADMINI~1\AppData\Local\Temp/cccOoMTm.o:myFile.c:(.text+0x57): undefined
 reference to `__mingw_vprintf'
collect2: ld returned 1 exit status

C:\Users\Administrator\Desktop>
1:
2:
3:
4:
5:
6:
7:
8:
9:
#include <stdio.h>
 
int main()
{
    printf("This is sample output.\n" \
    "This source code is known to work correctly.\n");
    
    return 0;
}
[+][-]08/31/09 01:53 AM, ID: 25221327Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: C Programming Language, Windows Programming, Windows 7
Tags: MinGW, Windows 7 x64, AMD64
Sign Up Now!
Solution Provided By: masheik
Participating Experts: 3
Solution Grade: A
 
[+][-]08/30/09 12:12 PM, ID: 25218815Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/30/09 12:30 PM, ID: 25218908Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/30/09 12:38 PM, ID: 25218946Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/30/09 01:00 PM, ID: 25219037Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/30/09 01:09 PM, ID: 25219081Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/30/09 02:03 PM, ID: 25219343Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/30/09 02:11 PM, ID: 25219395Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/31/09 10:01 AM, ID: 25224389Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/31/09 10:02 AM, ID: 25224391Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/31/09 10:04 AM, ID: 25224417Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/31/09 10:04 AM, ID: 25224421Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/31/09 10:06 AM, ID: 25224430Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/31/09 10:06 AM, ID: 25224434Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/31/09 10:07 AM, ID: 25224450Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625