Reimp-Dev C++

This is a discussion on Reimp-Dev C++ within the Game Programming forums, part of the General Programming Boards category; My computer wont allow me to use the reimp tool to convert the directX SDK libs to mingw compatible ones. ...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    21

    Exclamation Reimp-Dev C++

    My computer wont allow me to use the reimp tool to convert the directX SDK libs to mingw compatible ones. For some reason cmd wont recognise reimp. Could anybody post a downloaded to the converted libs or surgest a way to get it working. Thanks in advance
    Last edited by Xinco; 12-20-2006 at 02:37 PM.

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    A Board search for reimp turns up, among others:

    Installing Direct X
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    21
    Yeah, I tried searching before and found that. Followed it all and it still doesn't work. It says stuff like %%f not expected.

  4. #4
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    What exactly is 'it'? Help us to help you by providing clear details about exactly what the problem is and in exactly which context you have encountered this problem.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  5. #5
    Registered User
    Join Date
    Nov 2006
    Posts
    21
    Start>Run>cmd. When I type the first lines from
    'rem filename: convert.cmd
    set path=path_to_your_mingw/bin_directory;%path%
    for %%f in (*.lib) do reimp %%f
    rem the following are optional; omit if you want all of reimp's unmodified output
    del *.def
    del *.obj
    move libd3dx9_30.a libd3dx9.a
    move libd3dx9d_30.a libd3dx9d.a'
    it appears to recognise these commands. Then when I try type the line 'for %%f in (*.lib) do reimp %%f ' and cmd comes back saying '%%f is not recognised as an internal or external command, operable program or batch file'

  6. #6
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Okay, I'll go back and edit that a bit more to make it clearer what I meant.

    The part you are referring to is meant to be run as a batch file - paste the contents into a text file and call that file something like 'convert.cmd' or 'convert.bat' then run it from the command prompt by just typing the file name. Please remember to replace the part that reads 'path_to_your_mingw/bin_directory' with your actual path to your mingw bin directory.

    The previous section(i-vi) to the one you are referring to can be entered explicitly in sequence from the command prompt, ie.
    Code:
    set path=path_to_your_mingw/bin_directory;%path%
    for %f in (*.lib) do reimp %f
    del *.obj
    del *.def
    move libd3dx9_30.a libd3dx9.a
    move libd3dx9d_30.a libd3dx9d.a
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  7. #7
    Registered User
    Join Date
    Nov 2006
    Posts
    21
    Ok, I got the .a libs but I dont get the bit about the linking.

  8. #8
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Project menu --> Project options, parameters tab. Add the library names to the 'Linker' field using the -l (lowercase 'L') prefix and the name of the library, without the 'lib' prefix or file extension. For example, libd3d9.a would be entered into the 'Linker' field as -ld3d9. If you've put the directx libraries in a separate directory to your dev-cpp/mingw 'lib' directory, then you'll need to provide the path to that, too - in this situation it would probably be simplest just to use the 'Add library or object' button to add the necessary libraries to the 'Linker' field.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Whats better, C-Free or Dev C++??
    By i_can_do_this in forum Tech Board
    Replies: 10
    Last Post: 07-07-2006, 05:34 AM
  2. Resources with Dev C++ Problem (many simple problems)
    By Zeusbwr in forum Windows Programming
    Replies: 4
    Last Post: 04-07-2005, 12:08 AM
  3. New to Dev C++/<windows.h>...
    By Cilius in forum C++ Programming
    Replies: 3
    Last Post: 02-23-2005, 01:05 AM
  4. Glut and Dev C++, Programs not Quitting?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-29-2004, 08:43 PM
  5. DEV C++ Limitations?
    By Kirdra in forum Game Programming
    Replies: 3
    Last Post: 09-09-2002, 10:40 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21