Jump to content

  • Log In with Google      Sign In   
  • Create Account


Something wrong with something I don't know


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
7 replies to this topic

#1 Tac-Tics   Members   -  Reputation: 197

Like
Likes
Like

Posted 05 February 2002 - 01:19 AM

I recently got Todd Barron''s Multiplayer Game Programming book from Fatbrain.com but I''ve been having a little difficulty getting my code to compile. First of all... I think the reason is I''m using the Borland C++ compiler and not Visual C++, so I can''t follow the instructions on setting up the main project. When I compile, I keep getting a list of errors saying: ERROR: unresolved external ''SocketObject::~SocketObject()'' referenced from C:\c++\connecting\connect.obj There''s seven such errors... What might I have done wrong? I included both required directives (iomanip.h and SocketObject.h) and I also have a copy of winstock.h and ws2_32.lib in the folder (am I supposed to do that?). Can anyone help me out? "I''''m not evil... I just use the power of good in evil ways."

Sponsor:

#2 CaptainJester   Members   -  Reputation: 523

Like
Likes
Like

Posted 05 February 2002 - 02:45 AM

For any header file you include, there is usually an associated library file as well. Make sure that the comiler is set to include any necessary .lib files. Moving them to your project''s directory is not the way to do you. If you check your projects settings, there should be a place where the included libraries are listed. Add ws2_32.lib to that list.

---
Make it work.
Make it fast.

"Commmmpuuuuterrrr.." --Scotty Star Trek IV:The Voyage Home

#3 Tac-Tics   Members   -  Reputation: 197

Like
Likes
Like

Posted 05 February 2002 - 09:03 AM

I guess that''s the difficulty. I''m not using any fancy Compiler Suite... I''m just using textpad and DOS prompt to write, compile, and run my programs. I know next to nothing about how projects work =-/

"I''''m not evil... I just use the power of good in evil ways."

#4 Tac-Tics   Members   -  Reputation: 197

Like
Likes
Like

Posted 05 February 2002 - 06:12 PM

Can anyone help me with this? How do I impliment a library file. Note that I''m only using a text pad program and DOS prompt to compile and run. I have a copy of the library both in my /lib/ directory and in my project folder.

Someone plz help me! With every attempted fix of my code (note I don''t even know what''s wrong with it, so the term "fix" is used lightly), I get more and more unknown errors and warnings. I''m afraid soon I''ll get a warning that says my compiler will no longer even try to proccess my unintelligeble code!

"I''''m not evil... I just use the power of good in evil ways."

#5 Zidane   Members   -  Reputation: 152

Like
Likes
Like

Posted 07 February 2002 - 01:39 AM

Read your compilers doc''s on how to set up library directories and how to set it up to search for library files.

#6 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 12 February 2002 - 08:58 AM

i empathise. i''m also using the bcc32 free compiler. here''s what i''ve gathered so far:

1) to compile a win32 application, you must add -W to your command prompt: bcc32 -W xxx.cpp

2) it is next to impossible to get dx8.0 to work on my machine!

i hope the latter is due to a win xp issue, but i fear it might be a bcc32 issue. you can download borland''s dx8.0 sdk (software dev. kit) addapters at the following site:

http://www.geocities.com/foetsch/borlibs/index.htm

good luck!

ross

ps: are you mint, orange, or cinamon?

#7 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 12 February 2002 - 09:18 AM

I had the same problem w/ bcc 5.5 so i stopped using it.

#8 Tac-Tics   Members   -  Reputation: 197

Like
Likes
Like

Posted 12 February 2002 - 09:23 AM

Ah I got it to compile (abielt with multiple "Variable not used" warnings and the program didn''t stay open), but it did compile! Thanx you very much. I will also look for documentation on linking. Again thanks alot
Also, to answer your question Anon, Orange. You can see a pic here
http://www.geocities.com/trainee40/tac-tics.jpg
=-)

"I''''m not evil... I just use the power of good in evil ways."




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS