1030071002
asked on
error LNK2001: unresolved external symbol _GetUDPCrequest@24
--------------------Config uration: soap_udp_test - Win32 Debug--------------------
Compiling...
soap_udp_test.c
automatic link to gmglib.lib
Linking...
soap_udp_test.obj : error LNK2001: unresolved external symbol _GetUDPCrequest@24
Debug/soap_udp_test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
soap_udp_test.exe - 2 error(s), 0 warning(s)
Compiling...
soap_udp_test.c
automatic link to gmglib.lib
Linking...
soap_udp_test.obj : error LNK2001: unresolved external symbol _GetUDPCrequest@24
Debug/soap_udp_test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
soap_udp_test.exe - 2 error(s), 0 warning(s)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include ".\DLL1.h"
int _stdcall GetUDPCrequest( char *server_addr, unsigned short server_port, char *reqstr, long sizeof_reqstr, char *resultstr, long sizeof_resultstr );
int main (int argc, char *argv())
{
char reqstr[20000],resultstr[20000];
FILE *inpfile,*outfile;
char server_addr[] = "68.166.197.178";
unsigned short server_port = 5510;
int n, nr;
// open the file
if ( (inpfile = fopen("C:\\udp_request.txt","r")) == NULL)
{
printf("inputfile not found\n");
gets(reqstr);
return -1;
}
if ( (outfile = fopen("C:\\udp_result.txt","w")) == NULL)
{
printf("could not create out file\n");
gets(reqstr);
return -1;
}
//read each line
while( (n = fgets(reqstr, sizeof(reqstr), inpfile) > 0 ))
{
n--;
reqstr[n] = 0;
//send the request
nr = GetUDPCrequest(server_addr, server_port, reqstr,n, resultstr, sizeof(resultstr) );
//write the responce
fprintf(outfile, "%s\n", resultstr);
}
return 0;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.