error: windows.h: No such file or directory

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2006
Posts: 174
Reputation: tech291083 is an unknown quantity at this point 
Solved Threads: 0
tech291083 tech291083 is offline Offline
Junior Poster

error: windows.h: No such file or directory

 
0
  #1
Sep 2nd, 2009
Hi,

I have this code in C++ and it is not compiling in a terminal window on a Fedora Linux machine.

Please help, thanks a lot

  1. #include <windows.h>
  2.  
  3. int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
  4. LPSTR lpCmdLine, int nCmdShow)
  5. {
  6. MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK);
  7. return 0;
  8. }
Last edited by tech291083; Sep 2nd, 2009 at 3:51 am.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 360
Reputation: jencas is just really nice jencas is just really nice jencas is just really nice jencas is just really nice jencas is just really nice 
Solved Threads: 69
jencas jencas is offline Offline
Posting Whiz

Re: error: windows.h: No such file or directory

 
1
  #2
Sep 2nd, 2009
This is Windows code, not Linux.
If you are forced to reinvent the wheel at least try to invent a better one!

Please use code tags - Please mark solved threads as solved
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 174
Reputation: tech291083 is an unknown quantity at this point 
Solved Threads: 0
tech291083 tech291083 is offline Offline
Junior Poster

Re: error: windows.h: No such file or directory

 
0
  #3
Sep 2nd, 2009
Originally Posted by jencas View Post
This is Windows code, not Linux.
Hi,

Thanks a lot for the reply, I am sorry to post the code since I am not aware of the fact that it belongs to Windows, Could you please tell me as to what I should do in order to find code that has buttons etc and can work in Linux terminal?

Any particular web site or books for the purpose?

Thanks a lot my friend for your time, appreciated.........
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 2,839
Reputation: niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute 
Solved Threads: 298
Moderator
Featured Poster
niek_e's Avatar
niek_e niek_e is offline Offline
Roasting Maven

Re: error: windows.h: No such file or directory

 
1
  #4
Sep 2nd, 2009
Originally Posted by tech291083 View Post
Thanks a lot for the reply, I am sorry to post the code since I am not aware of the fact that it belongs to Windows
The line #include <windows.h> didn't ring a bell ?

Originally Posted by tech291083 View Post
, Could you please tell me as to what I should do in order to find code that has buttons etc and can work in Linux terminal?
My personal favorite is wxWidgets
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC