|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Archive::Windows Servers Archive area for Windows Servers's posts that were moved here after an inactivity period of 90 days. |
|
|
|
09-17-2003, 10:21 AM
|
|
Sarnak
|
|
Join Date: Apr 2003
Posts: 35
|
|
Compile error win 2k3, VS .NET 2002
Code:
packet_functions.obj : error LNK2019: unresolved external symbol _deflateEnd@4 referenced in function "int __cdecl DeflatePacket(unsigned char *,int,unsigned char *,int)" (?DeflatePacket@@YAHPAEH0H@Z)
packet_functions.obj : error LNK2019: unresolved external symbol _deflate@8 referenced in function "int __cdecl DeflatePacket(unsigned char *,int,unsigned char *,int)" (?DeflatePacket@@YAHPAEH0H@Z)
packet_functions.obj : error LNK2019: unresolved external symbol _deflateInit_@16 referenced in function "int __cdecl DeflatePacket(unsigned char *,int,unsigned char *,int)" (?DeflatePacket@@YAHPAEH0H@Z)
packet_functions.obj : error LNK2019: unresolved external symbol _inflateEnd@4 referenced in function "unsigned int __cdecl InflatePacket(unsigned char *,unsigned int,unsigned char *,unsigned int,bool)" (?InflatePacket@@YAIPAEI0I_N@Z)
packet_functions.obj : error LNK2019: unresolved external symbol _inflate@8 referenced in function "unsigned int __cdecl InflatePacket(unsigned char *,unsigned int,unsigned char *,unsigned int,bool)" (?InflatePacket@@YAIPAEI0I_N@Z)
packet_functions.obj : error LNK2019: unresolved external symbol _inflateInit2_@16 referenced in function "unsigned int __cdecl InflatePacket(unsigned char *,unsigned int,unsigned char *,unsigned int,bool)" (?InflatePacket@@YAIPAEI0I_N@Z)
../build/WorldDebug.exe : fatal error LNK1120: 6 unresolved externals
ive limited it down to the mysqlcliant.lib i belive, it is added to the lib files option in VS as e:\mysql\lib\opt and ive checked every post on the forum i can find and tried the solutions that were obvious. so far no luck. Lemme know if anyone has some insight or if you need more info
|
|
|
|
09-17-2003, 10:28 AM
|
Dragon
|
|
Join Date: May 2003
Location: Seattle, WA
Posts: 609
|
|
Looks like your project file is missing packet_functions.cpp. Not sure how your project file lost this reference. Add it manually and recompile.
If you continue to get unresolved externals, it's likely your project file is hosed. Come to IRC and get another copy of it.
|
09-25-2003, 01:35 PM
|
|
Sarnak
|
|
Join Date: Apr 2003
Posts: 35
|
|
Ok, this is still a problem, Merth thanks a ton for tryin to help me out in IRC, heres a update on the problem.
Code:
int DeflatePacket(unsigned char* in_data, int in_length, unsigned char* out_data, int max_out_length) {z_stream zstream;
seems to be the problem along with
Code:
uint32 InflatePacket(uchar* indata, uint32 indatalen, uchar* outdata, uint32 outdatalen, bool iQuiet) {z_stream zstream;
i researched all my include files and all are on the system and properly compiling except for one wich is
Code:
#include <netinet/in.h>
Now, i know this file contains packet functions so i come to the conclusion that it is at leased part of the problem. Is this a VS include or am i missing something in mysql or zlib? ive been messing with it for 2 weeks and im out of places to look. Thanks for any imput. If you need any other information please let me know here or in IRC.
|
09-25-2003, 02:43 PM
|
Dragon
|
|
Join Date: May 2003
Location: Seattle, WA
Posts: 609
|
|
Sorry, my bad. I didn't pay close attention to the error message:
Code:
unresolved external symbol _deflateEnd
You are missing zlib.lib from your linker input dependencies. Maybe you are running your own configuration? Go to the properties for your project, find the Linker/Input tab, and add zlib.lib to the "Additional Dependencies".
I suspect that since this is not part of your dependency list, something funky is happening. Are you compiling the "Debug" or "Release" configurations?
|
09-28-2003, 02:41 AM
|
|
Sarnak
|
|
Join Date: Apr 2003
Posts: 35
|
|
Ok this problem is fixed, for future referance, do not use VS.net 2002 academic version, it does not work! you need a full release becouse academic is missing lib files that you have to have or you will fail. Thanks Merth and Devn00b for the help on this. I used VS.net 2002 enterprise and it compiled fine. Dont i feel silly.. again thanks for your help guys
|
10-04-2004, 06:20 AM
|
Fire Beetle
|
|
Join Date: Sep 2004
Location: FL
Posts: 19
|
|
I have VS.net 2003 academic, same exact problem. I'm gonna dig around for another compiler to test, I'll post the result.
|
10-05-2004, 07:02 AM
|
Fire Beetle
|
|
Join Date: Sep 2004
Location: FL
Posts: 19
|
|
Got a copy of Visual C++ 6 and it compiles fine so yea- academic version is bad.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 07:31 AM.
|
|
|
|
|
|
|
|
|
|
|
|
|