Thread: Need help compiling driver

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    241

    Need help compiling driver

    I'm trying to recompile a driver so that it will work on my 64-bit machine, I have the source, but I'm guessing I need a ddk due to the fact my c++ compiler wont compile it, any ideas?

  2. #2
    Registered User
    Join Date
    Sep 2005
    Posts
    241
    It is written in C so I'm guessing this is in the wrong spot, sorry, admin, can you move this please?

  3. #3
    Registered User
    Join Date
    Sep 2005
    Posts
    241
    May somebody please help? I've been trying for months and I refuse to download any pirated programs since I know how much work goes through them

  4. #4
    Registered User
    Join Date
    Sep 2005
    Posts
    241
    `viewed 82 times.... and nobody has replied... nice

  5. #5
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    You're not supposed to bump threads, especially not three times in a row.

    `viewed 82 times.... and nobody has replied... nice
    Well, you were kind of vague:
    I'm trying to recompile a driver so that it will work on my 64-bit machine, I have the source, but I'm guessing I need a ddk due to the fact my c++ compiler wont compile it, any ideas?
    Save it as a .c file. What compiler are you using? Is the source C99?

    We can't help much with the given information.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  6. #6
    Registered User
    Join Date
    Sep 2005
    Posts
    241
    Ok, I'm trying to compile it in Bloodshed Dev C++, they are all saved as c, and of course h for the headers...
    Someone told me I needed a DDK to compile it :-/

  7. #7
    Registered User
    Join Date
    Sep 2005
    Posts
    241
    Also, theres alot more than one file(s) v_v


    EDIT:I'll start using the edit button now|

    EDIT:OMFG 112 VIEWS WHAT ELSE DO YOU WANT ME TO GIVE YOU GUYS THE SPECS
    Last edited by bikr692002; 02-12-2006 at 08:22 PM.

  8. #8
    Registered Luser cwr's Avatar
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    869
    You are an ungrateful and selfcentered idiot.

    This is a C programming forum. We discuss C programming. The normal way to compile a C program is to invoke a compiler, all of which have specific methods of compiling.

    The compiler I use has syntax: gcc -o program program.c

    Yours probably differs.

    Driver compilation is very operating system specific, so while it's written in C, the only people likely to be able to help are those who are familiar with driver compilation on Windows. Of the users on this forum, I'd say that would be less than 0.1% of them. The fact that you've had 112 views means nothing, since most people will be unable to help.

    Perhaps if you told us what you've already tried, and what happened, we might be able to offer some insight. Something like "I tried to compile this with dev c++, but got the following errors: <list of errors>" would be helpful.

    You've given us no information whatsoever.

  9. #9
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    You already know the answer to your question. You need the DDK to compile any Windows driver. You can order the DDK from MSDN (It's free, but you may have to pay for shipping). The DDK you need depends on what operating system you are creating the driver for. If your target is Windows XP, then get the Windows Server 2003 SP1 DDK CD.

  10. #10
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Enough bumping and whining - closed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 07-28-2008, 03:10 AM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. Linux (2.6.10+) device driver: multiple classes?
    By filker0 in forum Linux Programming
    Replies: 3
    Last Post: 09-26-2005, 08:46 PM
  4. tty driver development
    By outoolcoe in forum Linux Programming
    Replies: 1
    Last Post: 07-19-2005, 11:49 AM
  5. egavga.bgi
    By PING in forum Game Programming
    Replies: 6
    Last Post: 11-16-2004, 01:46 AM