Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

cant compile : undefined reference to _apicall01

Posted on 2002-07-24
3
Medium Priority
?
215 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 150 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

718 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