Computer Science Canada objbase.h not found :angry: |
Author: | Geostigma [ Sat May 26, 2007 11:07 pm ] | ||||
Post subject: | objbase.h not found :angry: | ||||
I'm starting to get really upset with trying learn how to program in c++ and using libraries. Well openGL is a big bust because of the lack of GLaux and support and the fact its not used any more and now I can't even use direct X because it can't find this mystical objbase.h file that even if you make one by copy and pasting the code from the net its not good enough for Visual studio express 05. Wtf is up. I just want something to work so I can build on it and learn it. Not much use when its broken.
|
Author: | rdrake [ Sun May 27, 2007 12:18 am ] |
Post subject: | RE:objbase.h not found :angry: |
You probably need to tell Visual Studio where to look for the objects. First hit on Google: here. |
Author: | Mazer [ Sun May 27, 2007 8:37 am ] |
Post subject: | RE:objbase.h not found :angry: |
For the record, OpenGL is quite widely used. Glaux is not, and this is one of the reasons why many people consider the NeHe tutorials (especially the first few) to be utter shit. EDIT: Since I know you're trying to figure out graphics, I'd recommend checking out this tutorial I posted. Regrettably, I didn't discuss the problems with the nehe tutorials much. Graphics programming can be a bitch to learn because there's so much out there that you won't understand that it's easy to learn things the wrong way and screw yourself over even more. |
Author: | wtd [ Sun May 27, 2007 10:30 am ] |
Post subject: | Re: RE:objbase.h not found :angry: |
Mazer @ Sun May 27, 2007 9:37 pm wrote: Graphics programming can be a bitch to learn because there's so much out there that you won't understand that it's easy to learn things the wrong way and screw yourself over even more.
Combine that with masses of dubious online C and C++ instructional materials and you have a double whammy. |
Author: | Geostigma [ Sun May 27, 2007 9:25 pm ] |
Post subject: | RE:objbase.h not found :angry: |
..... I have to find a base folder that has all these .h files... I got all the directx crap working but im missing everything else. objbase.h rpc.h .... this is just blamb.... ------ Build started: Project: windows_primer, Configuration: Debug Win32 ------ Compiling... cl : Command line warning D9040 : ignoring option '/analyze'; Code Analysis warnings are not available in this edition of the compiler dhWindow.cpp c:\program files\microsoft directx sdk (april 2007)\common\header\dhwindow.h(16) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory dhUtility.cpp c:\program files\microsoft directx sdk (april 2007)\common\source\dhutility.cpp(12) : fatal error C1083: Cannot open include file: 'atlstr.h': No such file or directory windows_primer.cpp c:\program files\microsoft directx sdk (april 2007)\include\objbase.h(12) : fatal error C1083: Cannot open include file: 'rpc.h': No such file or directory Generating Code... Build log was saved at "file://c:\Program Files\Microsoft Visual Studio 8\files\dxtest\windows_primer\Debug\BuildLog.htm" windows_primer - 3 error(s), 1 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========[/code] I also don't know how to find this link option to add these libraries that maybe from one of the links i should add. shell32.lib gdi32.lib kernel32.lib user32.lib comdlg32.lib ole32.lib oleaut32.lib advapi32.lib [code] |
Author: | rdrake [ Sun May 27, 2007 10:20 pm ] |
Post subject: | RE:objbase.h not found :angry: |
Am I to understand you installed the DirectX SDK? |
Author: | Martin [ Mon May 28, 2007 8:36 am ] |
Post subject: | RE:objbase.h not found :angry: |
Do yourself a favour and buy a book. I recommend this. At under $21, you can't go wrong. I worked through it and I was very impressed. |
Author: | Geostigma [ Mon May 28, 2007 9:34 am ] |
Post subject: | Re: objbase.h not found :angry: |
Obviously I DL'd the Direct X SDK. It wouldn't work period and would give me ::cant find D3dx.h :: I don't know how buying a book is supposed to help me manage all the files and link them together or find what im missing. This is just fusterating beyond anything |
Author: | Clayton [ Mon May 28, 2007 11:20 am ] |
Post subject: | RE:objbase.h not found :angry: |
I haven't read the book myself, but perhaps the book will give you instructions on how to do it? Just getting your nose all out of joint because you don't get the answer handed to you on a silver platter isn't going to help. rdrake gave you a link straight to a page which may help you solve your problem. |
Author: | Martin [ Mon May 28, 2007 3:14 pm ] |
Post subject: | Re: objbase.h not found :angry: |
Geostigma @ Mon 28 May, 23:34 wrote: Obviously I DL'd the Direct X SDK. It wouldn't work period and would give me ::cant find D3dx.h :: I don't know how buying a book is supposed to help me manage all the files and link them together or find what im missing. This is just fusterating beyond anything
My point was just that online tutorials tend to be very poor, and books tend to be written by Ph.D's who know what they are talking about. You need to learn the basics before you can get into the advanced stuff, and trying to skip over that without understanding will only lead you to frustration later. This is not meant to discourage you. If you're serious about learning how to do graphics, you should do it right. Pretend that you know nothing, and start from the beginning. Make it a goal to understand every line of code that you write. Every programmer in the world started with a simple Hello World, and there is no shame in that. Buy this book on SDL. It teaches you how to use SDL for graphics, sound and input. It's short, so you can probably blow through it in a few weeks. Then get the OpenGL book that I recommended. Together they'll set you back $57 + shipping (which is free if you get them together). In a month you'll be a better programmer than you would after a year of going through those online tutorials that you don't understand. Remember that the goal should be to understand, not to simply create a cool game. That will come with understanding. |
Author: | Geostigma [ Mon May 28, 2007 3:45 pm ] |
Post subject: | RE:objbase.h not found :angry: |
Now I feel like I'm starting to repeat my self about getting help. I'm not asking you to serve me things on the silver platter. I took that link rdrake posted, found the answer to one problem but not another. I don't like the idea about buying books to learn X thing because the only problem is setting up everything so it compiles. I have checked off things that people and the official MS website said to have before starting up programing for DirectX and i made sure that i have re read things to make sure I'm not forgetting anything. Sure ill buy books on how to do X thing, I have a book on C++ that I read daily and i play around with it. I have a good concept about it, but I'm a person who likes to play with graphics and I want to be able to do something before wasting money on something because I wont read it. I rather it be an investment |
Author: | Martin [ Mon May 28, 2007 4:03 pm ] |
Post subject: | RE:objbase.h not found :angry: |
Okay, I'm sorry. Your problem is that your include directories aren't set up properly. This is possibly from the #include "C:\Documents and Settings\Andrew\My Documents\Visual Studio 2005\Projects\Include\d3dx9.h" line. I don't have Windows, but this is likely what's causing the linker error. Try looking around the project properties for an include directories option, and add "C:\Documents and Settings\Andrew\My Documents\Visual Studio 2005\Projects\Include\" to it. EDIT: I think Project -> Properties -> Linker -> Additional Library Directories might do the trick. |
Author: | Geostigma [ Mon May 28, 2007 4:54 pm ] |
Post subject: | RE:objbase.h not found :angry: |
Quote: EDIT: I think Project -> Properties -> Linker -> Additional Library Directories might do the trick.
This does not exsist in VC 2005. However there is a project options where you include the directories of the libraries, source and headder files but its not called a linker. I have the Direct X libraries set up properly now because I don't have any issues with it. I think my problem is im missing the window's server SDK. First hit I got on google |
Author: | Mazer [ Mon May 28, 2007 6:03 pm ] |
Post subject: | RE:objbase.h not found :angry: |
Why would you need that? |
Author: | Geostigma [ Mon May 28, 2007 6:14 pm ] | ||
Post subject: | RE:objbase.h not found :angry: | ||
Because VC 2005 Express is a pile of notworkingness. Apparently I can't do any sort of programming with Direct x with it because its missing a lot of H files that only VC 2003 the full blown version has.
'atlstr.h is an example of a file that only VC 03 offers because the way the Direct X sdk is. I installed the windows SDK and now I have all my problems fixed with OpenGL (minus GLaux) and direct X (minus core header files) So unless theres a work around I'll have to get 03. EDIT: Wait, why does it matter the site i uses spacifically says VS 2005 ... I'm lost |
Author: | Geostigma [ Mon May 28, 2007 6:43 pm ] | ||
Post subject: | RE:objbase.h not found :angry: | ||
I think im getting somewhere
|
Author: | Mazer [ Mon May 28, 2007 7:08 pm ] |
Post subject: | Re: objbase.h not found :angry: |
Is this the tutorial you were looking at? |
Author: | Geostigma [ Mon May 28, 2007 7:20 pm ] | ||
Post subject: | RE:objbase.h not found :angry: | ||
no from http://www.drunkenhyena.com/cgi-bin/view_net_article.pl?chapter=2;article=7 and the set up i have been winging it. This looks very useful I'm lost now from this point I have no clue what to do so ill read that article. EDIT followed this to a tee, Same error using the tut file vs2005 version EDIT 2 Okay, missed one line now i have these
|
Author: | Martin [ Tue May 29, 2007 7:28 am ] |
Post subject: | Re: objbase.h not found :angry: |
Do you have the Platform SDK? You can get it here. |
Author: | Geostigma [ Tue May 29, 2007 8:29 am ] |
Post subject: | RE:objbase.h not found :angry: |
.......... I have everything I wouldn't even be at this point if I didn't have it. EDIT: hold on Ill have to try that tonight after thinking about it, I think I don't have it. I'm at school so I can't check sorry for hasty response |
Author: | Martin [ Wed May 30, 2007 1:06 pm ] |
Post subject: | RE:objbase.h not found :angry: |
So, success? |
Author: | Geostigma [ Wed May 30, 2007 10:44 pm ] | ||
Post subject: | Re: objbase.h not found :angry: | ||
Umm no success yet. I think I may have deleted a directory location by mistake. Can someone post there entire link set that have "$" in them.. also the error i get is.
Very important if someone could name of the exe list, include list, library list, exclude list, and source reference list directories so I can make sure that I didn't delete the wrong one. I tried reinstalling VS 3x with no avail and can't figure out how to reset the list. |
Author: | Geostigma [ Wed May 30, 2007 11:08 pm ] | ||
Post subject: | RE:objbase.h not found :angry: | ||
Know what, a picture is worth 1000 words and I solved my link.exe error. http://img409.imageshack.us/img409/4591/100wordsxd3.jpg New error i haves now is
|
Author: | Martin [ Thu May 31, 2007 9:26 am ] |
Post subject: | RE:objbase.h not found :angry: |
I'm almost positive that your problem has to do with not having the Platform SDK set up properly. Those are all Windows methods. Out of the (digital) box, Visual Studio Express only allows you to make .NET applications, and the Platform SDK is required to use old Windows technologies like Win32. Make sure that you follow all of those steps in that link that I sent you a few posts up. |
Author: | Geostigma [ Thu May 31, 2007 1:54 pm ] | ||
Post subject: | RE:objbase.h not found :angry: | ||
I attached a photo for a reason in my above post. I don't know what I'm missing when I have checked a billion times. Now i just cant get object files..
|
Author: | Geostigma [ Thu May 31, 2007 2:16 pm ] |
Post subject: | RE:objbase.h not found :angry: |
yes works finally effin yes1 bits and karma |
Author: | Martin [ Thu May 31, 2007 2:22 pm ] |
Post subject: | RE:objbase.h not found :angry: |
Woohoo ![]() |
Author: | Geostigma [ Thu May 31, 2007 2:26 pm ] |
Post subject: | RE:objbase.h not found :angry: |
Apperntly I didn't edit the file where I had to add the extra "AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"" Must of forgot to save it. After that NeHe AND direct X now compile. |