LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-19-2006, 12:42 AM   #1
scm86
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora Core 5 2.6.16-1.2133_FC5smp
Posts: 96

Rep: Reputation: 15
Question mingw32-gcc errors


I am taking a class in C programing the semester and will be required to turn in exe's as well as source files, and would like to be able to just make the exe in linux and test it in wine, to avoid rebooting my computer for something that I know can be done on linux. I went and installed mingw32 and found a little primer on how to use it, saying basically to use the same commands as would be used for gcc, so i did -lm for the math.h, and told it to look to the folder ~/egr115/include for the include headers. I get the following output:

Code:
[scott@mckay32-119 egr115]$ i586-mingw32msvc-gcc -o test.exe program_chapter1_1.c -I ./include/ -lm
/tmp/ccM0Zo0v.s: Assembler messages:
/tmp/ccM0Zo0v.s:2: Error: unknown pseudo-op: `.def'
/tmp/ccM0Zo0v.s:2: Error: unknown pseudo-op: `.scl'
/tmp/ccM0Zo0v.s:2: Error: unrecognized symbol type ""
/tmp/ccM0Zo0v.s:2: Error: junk at end of line, first unrecognized character is `3'
/tmp/ccM0Zo0v.s:2: Error: unknown pseudo-op: `.endef'
/tmp/ccM0Zo0v.s:3: Fatal error: unrecognized .section attribute: want a,w,x,M,S,G,T
I googled the error message and found severael references to it but no solutions, and the one reference here i could find was solved by the poster, and the solution kept secret...

Its probably something horribly easy, but i dont know what it is, any help would be appreciated, and yes, it compiles fine with gcc.

Thanks,

Scott McNeely

Last edited by scm86; 01-19-2006 at 12:44 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mingw32 liguorir Linux - Software 5 08-02-2004 10:13 PM
gcc errors using redhat 9 kevinmm Linux - Newbie 6 01-03-2004 08:03 AM
2 errors gcc and proftpd idscypher *BSD 3 12-03-2003 10:51 AM
gcc errors?? or are they? Rito Linux From Scratch 1 01-06-2003 04:54 PM
nvidia, gcc, and errors Independence Slackware 2 12-06-2002 05:10 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration