|
-
Aug 11th, 2000, 05:37 AM
#1
Thread Starter
Frenzied Member
I have written the following in my Windows program:
Code:
#include <iostream.h>
int main()
{
cout <<"test" << endl;
return 0;
}
But I get an error: Linker Fatal: Unable to open file 'winprog.def'
What is wrong???
-
Aug 11th, 2000, 12:53 PM
#2
It sounds like to me that there is a problem with the file, not your program. I suggest you download the file and replace it. What compiler are you using?
-
Aug 11th, 2000, 01:03 PM
#3
Thread Starter
Frenzied Member
The Borland compiler, that came with C++ 4.5
-
Aug 11th, 2000, 01:18 PM
#4
Sorry i dont have that one, or i would send you the file.
-
Aug 11th, 2000, 05:59 PM
#5
Monday Morning Lunatic
That program of yours isn't a windows program - it's a console program. Compile it as a DOS executable, and it should work. Your project settings must be FUBAR since the linker is trying to bring in the windows stuff.
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
-
Aug 12th, 2000, 05:03 AM
#6
Thread Starter
Frenzied Member
But I want to make a windows app.... how do I do that then?????
-
Aug 12th, 2000, 06:56 AM
#7
Monday Morning Lunatic
Do you want to do it using barefoot Windows calls, or the Microsoft Foundation Classes? My advice would be to learn how to make a simple program using the standard stuff, then move on to MFC once you know how it works.
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
-
Aug 12th, 2000, 06:59 AM
#8
Thread Starter
Frenzied Member
Thanks! But I don't now any Windows calls....
Could you teach me some, or tell me where I can find some tutorials about it????
-
Aug 12th, 2000, 07:04 AM
#9
Monday Morning Lunatic
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|