Results 1 to 15 of 15

Thread: Compile Question

  1. #1

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428

    Arrow Compile Question

    Today I tired compiling this application and it said that it could not run the program cl.exe
    When I tried to run it manually, it said it can't find MSPDB60.DLL which is needed to start the app!
    Where can I get this dll and where do I put it afterwords? in the System folder?

    Thanks!
    -Emo
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  2. #2
    denniswrenn
    Guest
    Put it in [VS Install path]\Common\MSDev98\Bin

  3. #3

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428
    Thanks a lot dennis...

    By the way, I was trying to compile your code that you gave in the VB forum and I noticed this..

    -Emo
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  4. #4
    denniswrenn
    Guest


    I usually don't go in the vb forum at all, but I am so incredibly bored tonight

  5. #5

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428
    I can see

    Anyway, for some reason if I try to compile your code, it says it can't run that cl.exe... but if I try to compile something else, it works!

    on yours it says...

    Compiling...
    Hello Worlds.cpp
    c:\........\hello world.cpp(10) : fatal error C1010: unexpected end of file while looking for precompiled header directive
    Error executing cl.exe.

    Hello World.obj - 1 error(s), 0 warning(s)


    ???
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  6. #6
    denniswrenn
    Guest
    Works fine for me

  7. #7

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428
    I don't know...

    It's a Win32 Console App right?

    -Emo
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  8. #8
    denniswrenn
    Guest
    Yep... Hmmmm, this is odd, I'll look into it more when I install VC++(just installed Win2k this evening and am still putting all my goodies on it )

  9. #9

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428
    I'll try it with Dev-C++...

    -Emo
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  10. #10
    denniswrenn
    Guest
    Look in Tools -> Options -> Directories. And make sure you see C:\Program Files\Microsoft Visual Studio\VC98\Include


    If you see that, then check to make sure all the include files are in the directory(compare them with your disk)...

  11. #11

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428
    Well, I tried it with Dev-C++ and it works fine...

    Also, I just made a new project and I told it to make a simple hello world app and the code was different than yours.. how come?? (That worked by the way )

    -Emo
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  12. #12
    denniswrenn
    Guest
    I am using the iostream header file, which is only available to C++(you can't use it in C), but they use stdio.h with the printf statement, which dates back to C... I prefer to use iostream, because I learned the basics of C++ with that, but you can use printf as well, but it's much more of a pain... Take a look at both methods to print out "I am 69 years old, and will soon be 70" on the screen with both numbers stored as variables:

    using stdio.h and printf:
    Code:
    int a = 69, b = 70;
    printf("I am %d years old, and will soon be %d\n", a, b);
    iostream.h
    Code:
    int a = 69, b = 70;
    cout << "I am " << a << " years old, and will soon be " << b << endl;
    Although #2 was a little more tedius to write, printf style strings can get really confusing, and will be a pain to figure out.


    -Dennis

    PS: I'm not really 69, I just really like that number

  13. #13

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428
    Thanks for clearing that up for me...

    And yes, who doesn't like 69? Actually I like 34½ but it's not fair not giving my share of the other 34½ for all the work she does

    -Emo
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  14. #14
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    The precompiled headers thing is a way of speeding up long compiles (many files). Anyway, if you install VC properly there should be no need to move files like this around.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  15. #15

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428

    By the way...

    Yesterday, I found the complete source of Quake 1 and when I tried compiling it, it game me an error...

    (Man, that's a big project(game))

    -Emo
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width