Thread: Warning: .drectve `%.*s' unrecognized

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    6

    Warning: .drectve `%.*s' unrecognized

    Hello.

    Can any body help me with this warning:
    Warning: .drectve `%.*s' unrecognized

    I think it's cause in a .lib / .a file (I use dev-cpp), but I have no clue which library it comes from and what I'll have to do when I find out. I suppose I may have to get the source for the lib. and compile it myself.

    Anyway, if you had this error, please try to help me.

    Thx.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Hard to say, without you posting it in some context

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Is this a linker or compiler warning? It could come from parsing a printf argument string, GCC can do that.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #4
    Registered User
    Join Date
    Dec 2004
    Posts
    6
    Hi. I've been away from the project for a while, but I've NOT given up...

    Let me try to elaborate a bit on the problem.
    The following is the entire compile log:

    Compiler: Default compiler
    Building Makefile: "C:\Documents and Settings\slet ingen\Dokumenter\c++\MySpaceSimDX9c\Makefile.win"
    Executing make...
    make.exe -f "C:\Documents and Settings\slet ingen\Dokumenter\c++\MySpaceSimDX9c\Makefile.win" all
    g++.exe ../spacesim/workroot/source/Client/Space_Sim.o ../spacesim/workroot/source/Client/objects/o_planet.o ../spacesim/workroot/source/Client/objects/o_spacestation.o ../spacesim/workroot/source/Client/objects/o_thruster.o ../spacesim/workroot/source/Client/objects/o_networkship.o ../spacesim/workroot/source/Client/objects/o_ship.o ../spacesim/workroot/source/Client/objects/o_dockedship.o ../spacesim/workroot/source/Client/objects/o_usership.o ../spacesim/workroot/source/Client/network/n_clientconnection.o ../spacesim/workroot/source/Client/network/n_consoleprocessor.o ../spacesim/workroot/source/Client/network/n_login.o ../spacesim/workroot/source/Client/network/n_loginprocessor.o ../spacesim/workroot/source/Client/network/n_shipprocessor.o ../spacesim/workroot/source/Client/network/n_positionupdateprocessor.o ../spacesim/workroot/source/Client/network/n_starbaseprocessor.o ../spacesim/workroot/source/Client/network/n_statechangeprocessor.o ../spacesim/workroot/source/Client/network/n_weaponprocessor.o ../spacesim/workroot/source/Client/userinterface/u_commoditymenu.o ../spacesim/workroot/source/Client/userinterface/u_commoditynames.o ../spacesim/workroot/source/Client/userinterface/u_directinput.o ../spacesim/workroot/source/Client/userinterface/u_keycontrol.o ../spacesim/workroot/source/Client/userinterface/u_keyin.o ../spacesim/workroot/source/Client/userinterface/u_menu.o ../spacesim/workroot/source/Client/userinterface/u_mousejoystickcontrol.o ../spacesim/workroot/source/Client/userinterface/u_textmenu.o ../spacesim/workroot/source/Client/userinterface/u_menubackround.o ../spacesim/workroot/source/Client/userinterface/u_usershipcontroler.o ../spacesim/workroot/source/Client/userinterface/u_tablemenu.o ../spacesim/workroot/source/Client/userinterface/u_starbaseinterface.o ../spacesim/workroot/source/Client/userinterface/u_commodityselectmenu.o ../spacesim/workroot/source/Client/userinterface/u_fuelmenu.o ../spacesim/workroot/source/Client/userinterface/u_shipmenu.o ../spacesim/workroot/source/Client/userinterface/u_systemmenu.o ../spacesim/workroot/source/Client/userinterface/u_usermenu.o ../spacesim/workroot/source/Client/userinterface/u_commoditytablemenu.o ../spacesim/workroot/source/Client/userinterface/u_weaponmenu.o ../spacesim/workroot/source/Client/userinterface/Guages/ug_basicspeedposguage.o ../spacesim/workroot/source/Client/userinterface/Guages/ug_starnavguage.o ../spacesim/workroot/source/Client/userinterface/Guages/ug_targeting.o ../spacesim/workroot/source/Client/userinterface/Guages/ug_sphererothud.o ../spacesim/workroot/source/Client/userinterface/Guages/ug_classicrothud.o ../spacesim/workroot/source/Client/userinterface/Guages/ug_powerguage.o ../spacesim/workroot/source/Client/userinterface/Guages/ug_starsystemnavguage.o ../spacesim/workroot/source/Client/userinterface/Guages/ug_console.o ../spacesim/workroot/source/Client/sound/s_samplemanager.o ../spacesim/workroot/source/Client/sound/s_music.o ../spacesim/workroot/source/Client/graphics/d3denumeration.o ../spacesim/workroot/source/Client/graphics/d3dsettings.o ../spacesim/workroot/source/Client/graphics/d3dutil.o ../spacesim/workroot/source/Client/graphics/g_ortho.o ../spacesim/workroot/source/Client/graphics/g_render.o ../spacesim/workroot/source/Client/graphics/g_renderstate.o ../spacesim/workroot/source/Client/graphics/dxutil.o ../spacesim/workroot/source/Client/graphics/g_particalsystem.o ../spacesim/workroot/source/Client/graphics/g_skybox.o ../spacesim/workroot/source/Client/graphics/g_guimanager.o ../spacesim/workroot/source/Client/graphics/g_vertexbuffermgr.o ../spacesim/workroot/source/Client/graphics/d3dapp.o ../spacesim/workroot/source/Client/graphics/g_textout.o ../spacesim/workroot/source/Client/graphics/d3dfont.o ../spacesim/workroot/source/Client/graphics/g_texturestate.o ../spacesim/workroot/source/Client/processing/p_loadinit.o ../spacesim/workroot/source/Client/processing/p_processor.o ../spacesim/workroot/source/Client/processing/p_timer.o ../spacesim/workroot/source/Client/processing/p_universe.o ../spacesim/workroot/source/Client/processing/p_mainloop.o ../spacesim/workroot/source/Client/processing/p_resource.o ../spacesim/workroot/source/Client/processing/p_state.o ../spacesim/workroot/source/Shared/math/m_collision.o ../spacesim/workroot/source/Shared/math/m_fpt3.o ../spacesim/workroot/source/Shared/math/m_movement.o ../spacesim/workroot/source/Shared/math/m_fpt2.o ../spacesim/workroot/source/Shared/math/m_matrix.o ../spacesim/workroot/source/Shared/math/m_quat.o ../spacesim/workroot/source/Shared/math/m_trig.o ../spacesim/workroot/source/Shared/graphics/g_model.o ../spacesim/workroot/source/Shared/graphics/g_vertex.o ../spacesim/workroot/source/Shared/graphics/g_modelmanager.o ../spacesim/workroot/source/Shared/fileio/f_modelloader.o ../spacesim/workroot/source/Shared/objects/o_systems.o ../spacesim/workroot/source/Shared/objects/o_weaponplasmacannon.o ../spacesim/workroot/source/Shared/objects/o_objectlist.o ../spacesim/workroot/source/Shared/objects/o_weapon.o ../spacesim/workroot/source/Shared/processing/p_log.o ../spacesim/workroot/source/Shared/network/n_packetparser.o ../spacesim/workroot/source/Shared/network/n_tcpioconnection.o ../spacesim/workroot/source/Shared/network/n_timestamp.o ../spacesim/workroot/source/Shared/network/n_packet.o -o "Project1.exe" -L"C:/Dev-Cpp/lib" -mwindows ../../../../../Dev-Cpp/lib/libd3d9.a ../../../../../Dev-Cpp/lib/libd3dx9d.a ../../../../../Devlib/Library/DevLibSoundFMOD-DevCpp.a ../../../../../Dev-Cpp/MyLibraries/libfmod.a ../../../../../Dev-Cpp/lib/libws2_32.a ../../../../../Dev-Cpp/lib/libwinmm.a ../../../../../Dev-Cpp/lib/libdinput.a ../../../../../Dev-Cpp/lib/libdinput8.a ../../../../../Dev-Cpp/lib/libdxguid.a

    Warning: .drectve `%.*s' unrecognized

    Execution terminated

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Hmmm...
    I'll hazard a guess. I think one of the libraries you have there was built for a newer version of Dev-C++ than the one you have.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #6
    Registered User
    Join Date
    Dec 2004
    Posts
    6

    Dev-cpp version

    Yesterday, before trying to compile, I reinstalled Dev-C++.

    Before reinstalling I removed Dev-C++ (Add/remove program in control panel) and then deleted my Dev-C++ directory. Do you think I should have deleted more direcories or files?

    I installed Dev-C++ version 4.9.9.1 and used the Web Update Module to get the DirectX9c sdk package.

    I'm not sure about the libfmod.a file... that could be for another compiler... hmmm. I wonder if I can find one that works with Dev-C++.. . I assume that what I really should look for is one that works with gcc, right?

    I guess it's worth a go. :-)

  7. #7
    Registered User
    Join Date
    Dec 2004
    Posts
    6

    some one else with this problem...

    http://www.devmaster.net/forums/inde...showtopic=1658

    ... I sure hope I can get around this with out changing compiler.

  8. #8
    Registered User
    Join Date
    Dec 2004
    Posts
    6
    I went to www.fmod.org and got the latest version of fmodlib.a

    That didn't change anything. hmmm... what to do, what to do.

  9. #9
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Link only a single of your object files. You'll get loads of unresolved symbols, but so what...
    Repeat with each object file. If at any point you get the error, check that source file for strange pragmas or code, recompile it, whatever.
    If none of your object files exhibits the error, start adding the libraries, one by one.

    Eventually, you should find out just where the error lies, which is a big step towards solving the problem.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  10. #10
    Registered User
    Join Date
    Dec 2004
    Posts
    6
    Thanks. I'll try that. I also found this:

    http://sourceforge.net/mailarchive/m...msg_id=6512381

    Verry interresting.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 10
    Last Post: 07-10-2008, 03:45 PM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. <Gulp>
    By kryptkat in forum Windows Programming
    Replies: 7
    Last Post: 01-14-2006, 01:03 PM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM