Link to home
Start Free TrialLog in
Avatar of sector
sector

asked on

_printf error with visual c 1.52

What causes this link problem ( _printf ) with Visual C 1.52 in this windows project & how can it be solved ?

#include <stdio.h>
#include <windows.h>

void main()
{
  printf("This is just a test");
}

Linking...

TRY.OBJ(c:\project\vc-c1_de.kit\vcc\vcc\try.c) : error L2029: '_printf' : unresolved external

 LINK returned error code 2.
4.EXE - 1 error(s), 0 warning(s)

Avatar of alexo
alexo
Flag of Antarctica image

printf() needs a console to print to and Win16 does not support consoles.  Compile your project as QiuckWin (or something similar).
Avatar of sector
sector

ASKER

i can't compile my program as a quickWindow application
because it is a CGI .

what other alternatives do i have ???
ASKER CERTIFIED SOLUTION
Avatar of alexo
alexo
Flag of Antarctica 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
And the autograder hits again!