Borland C Linker Error Undefined Symbol
Contents |
Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Guidelines Article Help Forum Article Competition Submit an article or tip Post your Blog quick answersQ&A Ask a Question turbo c linker error undefined symbol View Unanswered Questions View All Questions... C# questions Linux questions ASP.NET questions
Linker Error Undefined Symbol _initgraph
SQL questions VB.NET questions discussionsforums All Message Boards... Application Lifecycle> Running a Business Sales / Marketing Collaboration / linker error undefined symbol in module Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL Managed C++/CLI C# Free Tools Objective-C and Swift Database Hardware &
Linker Error Undefined Symbol _printf In Module
Devices> System Admin Hosting and Servers Java .NET Framework Android iOS Mobile SharePoint Silverlight / WPF Visual Basic Web Development Site Bugs / Suggestions Spam and Abuse Watch features Competitions News The Insider Newsletter The Daily Build Newsletter Newsletter archive Surveys Product Showcase Research Library CodeProject Stuff communitylounge Who's Who Most Valuable Professionals The Lounge The Insider News The Weird linker error undefined symbol _closegraph in module & The Wonderful The Soapbox Press Releases Non-English Language > General Indian Topics General Chinese Topics help What is 'CodeProject'? General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ Linker error in c program Rate this: Please Sign up or sign in to vote. See more: C I am the beginner for c program... what is mean by Linker Error: undefined symbol print in module anyone explain Posted 4-Oct-11 5:24am kschandru371 Add a Solution 4 solutions Top Rated Most Recent Rate this: Please Sign up or sign in to vote. Solution 2 Accept Solution Reject Solution Did you mis-spell printf? Permalink Posted 4-Oct-11 7:19am Richard MacCutchan571.1K Comments Simon Bang Terkildsen 4-Oct-11 13:23pm hehe, most likely Rate this: Please Sign up or sign in to vote. Solution 1 Accept Solution Reject Solution The linker error in question means that you have used a function print but the linker cannot find that function in any of th
module It means that you have not enabled the graphics library for linking. By default this setting is http://www.softwareandfinance.com/Turbo_C/Graphics_initgraph.html OFF when you install Turbo C++ version 3.0. All you need to do is, from turbo c++ menu, goto Options -> Linker -> Libraries... and check the Graphics Library option Disclaimer: This web site is for educational and informational purposes only. Click here to read the Disclaimer. Content copyright 2010-2015. Betelgeuse LLC. All rights reserved.
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search https://www.experts-exchange.com/questions/10017767/Linker-error-in-Borland-C-when-compiling.html Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > Linker error in Borland C++ when compiling Want to Advertise Here? Solved Linker error in Borland C++ when compiling Posted on 1997-07-19 C 1 Verified Solution 6 Comments 1,651 Views Last Modified: 2008-02-26 I am running broland c++ 4.0 under win 95. I am trying to compile a small program called AI1pt.c that reads an A/D channel linker error of an A/D card (PC-LPM-16). The program comes as a 3. party software product with the NIDAQ package from National Instruments. The little program uses other driver files, but apparantly when it tries to use the functions of the include files it fails. Here is the program ai1pt.c #include "nidaqex.h" void main(void) { /* * Local Variable Declarations: */ i16 iStatus = 0; i16 iRetVal = 0; linker error undefined i16 iDevice = 1; i16 iChan = 1; i16 iGain = 1; f64 dVoltage = 0.0; i16 iIgnoreWarning = 0; iStatus = AI_VRead(iDevice, iChan, iGain, &dVoltage); iRetVal = NIDAQErrorHandler(iStatus, "AI_VRead", iIgnoreWarning); if (iStatus == 0) { printf(" The voltage at AI channel %d is %lf volts.\n", iChan, dVoltage); } } When compiling I get the following error messages : Linker Warining : No module definition file specified : using defaults Linker error : Undefines symbol AI_VRead in module AI1pt.c Linker error : Undefined symbol Owlmain (int, char, far*far*) in library file c:\bc4\lib\owlwi.lib in module winmain. Here is parts of the nidaq.h file that is being called : #ifndef _NIDAQ_Header_ #define _NIDAQ_Header_ /************************************************************************* * * NI-DAQ Windows - Function Prototypes * Copyright (C) National Instruments 1995. * *************************************************************************/ typedef char i8; typedef unsigned char u8; typedef short i16; typedef unsigned short u16; typedef long i32; typedef unsigned long u32; typedef float f32; typedef double f64; #ifndef FAR #define __locallydefinedFAR #define FAR #endif #ifdef __cplusplus extern "C" { #endif /* some parts of program cut out here */ extern i16 WINAPI AI_VRead ( i16 slot, i16 chan, i16 gain, f64 FAR * volts);