Solved

cant compile : undefined reference to _apicall01

Posted on 2002-07-24
3
209 Views
Last Modified: 2010-04-15
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
0
Comment
Question by:smurff
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 27

Expert Comment

by:BigRat
ID: 7174172
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?)
0
 
LVL 3

Author Comment

by:smurff
ID: 7174361
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
0
 
LVL 27

Accepted Solution

by:
BigRat earned 50 total points
ID: 7174424
According to this all the ar.* files should be in the same directory as the system includes (not a good idea). One normally writes :-

#include "ar.h"

and then they are in the application's include directory, whose name is often given as a -I parameter on the compiler's command line.

PS: programmingLanguages/C
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question