Link to home
Start Free TrialLog in
Avatar of smurff
smurff

asked on

cant compile : undefined reference to _apicall01

Hi,

New to C (from delphi) installed lcc-win32. Build "hello world" works fine. Got a .c file that i know works for someone else that calls an api. I have all the .h files and everything is the same as my friend but it wont compile saying : undefined reference to (the api call)

Anyone know why please

Many thanks
Smurff
Avatar of BigRat
BigRat
Flag of France image

Wrong forum, but no matter. There may not be the correct reference (in the form of #include) in the .c file to the .h file. Can you either check this, or post the line containing the reference here?

(Incidentally - where are the two files? In same diectory?)
Avatar of smurff
smurff

ASKER

Hi

Sorry about the wrong forum, which one should I goto?

The #include section looks like this:



                            /* System include files */
#include    <stdio.h>
#include    <stdlib.h>
#include    <string.h>
                            /* AR System include files */
#include    <ar.h>
#include    <arextern.h>
#include    <arstruct.h>
#include    <arfree.h>


Are they supposed to be case sensative?
The files are in the /include dir Ive tried putting them into the same directory... do you think it could be lcc-win32?

Many thanks
Smurff
ASKER CERTIFIED SOLUTION
Avatar of BigRat
BigRat
Flag of France 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