Linker Error Unresolved External Referenced From .obj
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Borland C++ linker error c file include up vote 2 down vote favorite I'm trying to build a C++ program with borland C++ Builder V5.5. Everything works fine until I tryed to call a function defined in a c file. The compiler works finde but linking is not working. The linker is not able to find the function called from c++ file. The .obj file is gernerated and part of the project xml file. Do anybody now how I can solve this error. To be sure that there are no side effects, I start a new project just calling c function call in constructor. The Project structure looks the following: Form1.h defines Constructor and includes header where the c function is defined Form1.cpp implements Constructor and call the c function test.h defines an void function "void abc();" test.c includes test.h and implements an void function "void abc() {}" Unresolved external "abc()" referenced from ...unit1.obj Do anyone have an idea?? Here some code #include
4 Reference Pages OpenGL 3.3 Reference Pages OpenGL 2.1 Reference Pages OS/Platform Implementations OpenGL Books Coding Resources OpenGL SDK FAQs Sample Code & Tutorials GLUT & Utility Libraries Programming Language Bindings Benchmarks Mailing Lists & News Groups Archived Resources Wiki Forums About OpenGL Contact Us OpenGL logo Advertise on OpenGL Jobs Register Help Remember Me? What's New? Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders Khronos Forums COLLADA forums http://stackoverflow.com/questions/11029062/borland-c-linker-error-c-file-include OpenGL: Getting Started Advanced Search Forum DEVELOPERS OpenGL Toolkits (e.g. GLUT, GLFW, GLM) Unresolved external errors First time visitors, please read our FAQ and our Forum Rules and Guidelines. You must register before you can post. Results 1 to 3 of 3 Thread: Unresolved external errors Thread Tools Show Printable Version Email this Page… Display https://www.opengl.org/discussion_boards/showthread.php/161791-Unresolved-external-errors Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 03-06-2002,03:11 PM #1 hi_speed_idiot View Profile View Forum Posts Private Message Junior Member Newbie Join Date Mar 2002 Location Ascot, QLD, Australia Posts 5 Unresolved external errors The following is a basic polygon program written in C++ with Cbuilder5, and every time i compile or run it, i get the linker errors: [Linker error] - Unresolved external '_Form1' referenced from C:\BORLAND\CBUILDER5\MYSOURCE\PROJECT1.OBJ [Linker error] - Unresolved external 'TForm1::' referenced from C:\BORLAND\CBUILDER5\MYSOURCE\PROJECT1.OBJ If i run the DOS command line module(bcc32) i get these errors instead: Unresolved external 'glutInit' referenced from C:\BORLAND\CBUILDER5\MYSOURCE\GLUT2.OBJ Unresolved external 'glutInitDisplayMode' referenced from C:\BORLAND\CBUILDER5\MYSOURCE\GLUT2.OBJ Unresolved external 'glutInitWindowSize' referenced from C:\BORLAND\CBUILDER5\MYSOURCE\GLUT2.OBJ Unresolved external 'glutInitWindowPosition' referenced from C:\BORLAND\CBUILDER5\MYSOURCE\GLUT2.OBJ Unresolved external 'glutCreateWindow' referenced from C:\BORLAND\CBUILDER5\MYSOURCE\GLUT2.OBJ Unresolved external 'glutDisplayFunc' referenced from C:\BORLAND\CBUILDER5\MYSOURCE\GLUT2.OBJ Unresolved external 'glutMainLoop' referenced from C:\BORLAND\CBUILDER5\MYSOURCE\GLUT2.OBJ ********** ********** ********** FOLLOWING is the source code of the program: #include
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 https://www.experts-exchange.com/questions/21430791/Borland-c-builder-6-linker-error-Unresolved-external-error.html Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > Borland c++ builder 6 linker error: Unresolved external error Want to Advertise Here? Solved Borland c++ builder 6 linker error: Unresolved external error Posted on 2005-05-19 Programming 1 Verified Solution 9 Comments 7,668 Views Last Modified: 2008-01-09 Hi, Please help me to solve linker error the [Linker Error] Unresolved external 'SCardEstablishContext' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\USB.OBJ. I am using borland c++ builder 6. I try to include winscard.lib by set the Library path in Project options to $(BCB)\lib\obj;$(BCB)\lib;C:\Program Files\BORLAND\CBuilder6\Lib\Psdk, but the problem still exists. Attach here is the source #include