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. General Programming
  3. C / C++ / MFC
  4. Linux commands

Linux commands

Scheduled Pinned Locked Moved C / C++ / MFC
csharphelpphpvisual-studiogame-dev
7 Posts 4 Posters 0 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.
  • T Offline
    T Offline
    TTPadmin
    wrote on last edited by
    #1

    Hi, I'm trying to port a 3d game for Linux into Windows. I'm stuck right now, because the code has the commands ioperm, outb, and fmod which are Linux only. I'm using Visual Studio 2005. There are dlls out there but I don't know how to implement them. I have a screenshot: http://forum.freegamedev.net/download/file.php?id=416&mode=view[^] Can you help me?

    M P 2 Replies Last reply
    0
    • T TTPadmin

      Hi, I'm trying to port a 3d game for Linux into Windows. I'm stuck right now, because the code has the commands ioperm, outb, and fmod which are Linux only. I'm using Visual Studio 2005. There are dlls out there but I don't know how to implement them. I have a screenshot: http://forum.freegamedev.net/download/file.php?id=416&mode=view[^] Can you help me?

      M Offline
      M Offline
      markkuk
      wrote on last edited by
      #2

      Tuxkart has already been ported to Windows. If you don't want to re-invent the wheel, you can download the current version from SourceForge: http://supertuxkart.sourceforge.net/Downloads[^]

      T 1 Reply Last reply
      0
      • M markkuk

        Tuxkart has already been ported to Windows. If you don't want to re-invent the wheel, you can download the current version from SourceForge: http://supertuxkart.sourceforge.net/Downloads[^]

        T Offline
        T Offline
        TTPadmin
        wrote on last edited by
        #3

        If it was, I would know. I've been contributing to it (SuperTuxKart) for a year now. I found the fmod isn't Linux-only... But I try putting double, float, and long double and none of them work.

        C 1 Reply Last reply
        0
        • T TTPadmin

          If it was, I would know. I've been contributing to it (SuperTuxKart) for a year now. I found the fmod isn't Linux-only... But I try putting double, float, and long double and none of them work.

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          fmod must work on Windows. :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
          [My articles]

          1 Reply Last reply
          0
          • T TTPadmin

            Hi, I'm trying to port a 3d game for Linux into Windows. I'm stuck right now, because the code has the commands ioperm, outb, and fmod which are Linux only. I'm using Visual Studio 2005. There are dlls out there but I don't know how to implement them. I have a screenshot: http://forum.freegamedev.net/download/file.php?id=416&mode=view[^] Can you help me?

            P Offline
            P Offline
            Paul M Watt
            wrote on last edited by
            #5

            The error you are getting for fmod indicates it can't decide which of the 3 versions of fmod that it should use. you will need to explicitly declare or cast the type of your variable for the fmod call. ioperm and outb are for port access on Linux. ioperm gives access to the serial ports, which you may or may not need to call on Windows based on your security settings. outb writes a byte to the specified port. You can open a serial port with a call to CreateFile, and specify the name of the port, such as "COM2". Then use WriteFile to write a single byte. Depending on how complicated the serial port access is in the game, you may want to look up the "Communication Functions" such as SetupComm. Good Luck

            T 1 Reply Last reply
            0
            • P Paul M Watt

              The error you are getting for fmod indicates it can't decide which of the 3 versions of fmod that it should use. you will need to explicitly declare or cast the type of your variable for the fmod call. ioperm and outb are for port access on Linux. ioperm gives access to the serial ports, which you may or may not need to call on Windows based on your security settings. outb writes a byte to the specified port. You can open a serial port with a call to CreateFile, and specify the name of the port, such as "COM2". Then use WriteFile to write a single byte. Depending on how complicated the serial port access is in the game, you may want to look up the "Communication Functions" such as SetupComm. Good Luck

              T Offline
              T Offline
              TTPadmin
              wrote on last edited by
              #6

              I put in long double, double, and float in front of fmod and none of them work. outb: you lost me at CreateFile.... I don't know much of anything about programming.

              T 1 Reply Last reply
              0
              • T TTPadmin

                I put in long double, double, and float in front of fmod and none of them work. outb: you lost me at CreateFile.... I don't know much of anything about programming.

                T Offline
                T Offline
                TTPadmin
                wrote on last edited by
                #7

                I get the error "type unexpected". for fmod prefixes. What should I do?

                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