Link to home
Start Free TrialLog in
Avatar of 1030071002
1030071002Flag for United States of America

asked on

error LNK2001: unresolved external symbol _GetUDPCrequest@24

--------------------Configuration: 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)
#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;
	}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Infinity08
Infinity08
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial