Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. First real questioN?

First real questioN?

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
c++linuxquestionhelp
2 Posts 1 Posters 8 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    K L K
    wrote on last edited by
    #1

    Hi, I am using Ubuntu 6.06.2 with mingw32 installed as a cross compiler. I installed it with "apt-get install mingw32 mingw32-binutils mingw32-runtime". I wrote the following simple program to test whether compilation works: int main(int argc, char* argv[]) { return 0; } When I try compiling it, however, I get the following: tgs@tgs-desktop~/test$ i586-mingw32msvc-gcc simpletest.c -o simpletest.exe /tmp/cc5xd3WR.s: Assembler messages: /tmp/cc5xd3WR.s:2: Error: unknown pseudo-op: `.def' /tmp/cc5xd3WR.s:2: Error: unknown pseudo-op: `.scl' /tmp/cc5xd3WR.s:2: Error: unrecognized symbol type "" /tmp/cc5xd3WR.s:2: Error: junk at end of line, first unrecognized character is `3' /tmp/cc5xd3WR.s:2: Error: unknown pseudo-op: `.endef' /tmp/cc5xd3WR.s:5: Error: unknown pseudo-op: `.def' /tmp/cc5xd3WR.s:5: Error: unknown pseudo-op: `.scl' /tmp/cc5xd3WR.s:5: Error: unrecognized symbol type "" /tmp/cc5xd3WR.s:5: Error: junk at end of line, first unrecognized character is `3' /tmp/cc5xd3WR.s:5: Error: unknown pseudo-op: `.endef' I feel like i586-mingw32msvc-gcc is trying to pass its output to the wrong assembler. There shouldn't be a reason for this though, I have all of the required programs in my path: tgs@tgs-desktop~/test$ ls /usr/bin/ | grep i586 i586-mingw32msvc-addr2line i586-mingw32msvc-ar i586-mingw32msvc-as i586-mingw32msvc-c++ i586-mingw32msvc-cc i586-mingw32msvc-c++filt i586-mingw32msvc-cpp i586-mingw32msvc-dlltool i586-mingw32msvc-dllwrap i586-mingw32msvc-g++ i586-mingw32msvc-gcc i586-mingw32msvc-gcc-3.4.4 i586-mingw32msvc-gccbug i586-mingw32msvc-gcov i586-mingw32msvc-ld i586-mingw32msvc-nm i586-mingw32msvc-objcopy i586-mingw32msvc-objdump i586-mingw32msvc-ranlib i586-mingw32msvc-readelf i586-mingw32msvc-size i586-mingw32msvc-strings i586-mingw32msvc-strip i586-mingw32msvc-windres I found some advice that told me to set the 'AS' environment variable to i586-mingw32msvc-as, but that didn't work either. Thoughts?

    K 1 Reply Last reply
    0
    • K K L K

      Hi, I am using Ubuntu 6.06.2 with mingw32 installed as a cross compiler. I installed it with "apt-get install mingw32 mingw32-binutils mingw32-runtime". I wrote the following simple program to test whether compilation works: int main(int argc, char* argv[]) { return 0; } When I try compiling it, however, I get the following: tgs@tgs-desktop~/test$ i586-mingw32msvc-gcc simpletest.c -o simpletest.exe /tmp/cc5xd3WR.s: Assembler messages: /tmp/cc5xd3WR.s:2: Error: unknown pseudo-op: `.def' /tmp/cc5xd3WR.s:2: Error: unknown pseudo-op: `.scl' /tmp/cc5xd3WR.s:2: Error: unrecognized symbol type "" /tmp/cc5xd3WR.s:2: Error: junk at end of line, first unrecognized character is `3' /tmp/cc5xd3WR.s:2: Error: unknown pseudo-op: `.endef' /tmp/cc5xd3WR.s:5: Error: unknown pseudo-op: `.def' /tmp/cc5xd3WR.s:5: Error: unknown pseudo-op: `.scl' /tmp/cc5xd3WR.s:5: Error: unrecognized symbol type "" /tmp/cc5xd3WR.s:5: Error: junk at end of line, first unrecognized character is `3' /tmp/cc5xd3WR.s:5: Error: unknown pseudo-op: `.endef' I feel like i586-mingw32msvc-gcc is trying to pass its output to the wrong assembler. There shouldn't be a reason for this though, I have all of the required programs in my path: tgs@tgs-desktop~/test$ ls /usr/bin/ | grep i586 i586-mingw32msvc-addr2line i586-mingw32msvc-ar i586-mingw32msvc-as i586-mingw32msvc-c++ i586-mingw32msvc-cc i586-mingw32msvc-c++filt i586-mingw32msvc-cpp i586-mingw32msvc-dlltool i586-mingw32msvc-dllwrap i586-mingw32msvc-g++ i586-mingw32msvc-gcc i586-mingw32msvc-gcc-3.4.4 i586-mingw32msvc-gccbug i586-mingw32msvc-gcov i586-mingw32msvc-ld i586-mingw32msvc-nm i586-mingw32msvc-objcopy i586-mingw32msvc-objdump i586-mingw32msvc-ranlib i586-mingw32msvc-readelf i586-mingw32msvc-size i586-mingw32msvc-strings i586-mingw32msvc-strip i586-mingw32msvc-windres I found some advice that told me to set the 'AS' environment variable to i586-mingw32msvc-as, but that didn't work either. Thoughts?

      K Offline
      K Offline
      K L K
      wrote on last edited by
      #2

      I figured this problem out: http://ubuntuforums.org/showthread.php?t=781257[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups