473,405 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

linking error

I have downloaded some header files with is corresponding c files. I
put them all in a single directory(bin ) and with my own code using
fuctions declared in header file and defined in that C file, I
compiled it.

But after this when I build the exe(I am using XP), I am getting
linker errors ????

what should I do ???
Oct 9 '08 #1
4 1199
asit wrote:
I have downloaded some header files with is corresponding c files. I
put them all in a single directory(bin ) and with my own code using
fuctions declared in header file and defined in that C file, I
compiled it.

But after this when I build the exe(I am using XP), I am getting
linker errors ????

what should I do ???
Make sure you compile and link all the files you require. How you do
that is something to ask on a compiler or platform group.

--
Ian Collins.
Oct 9 '08 #2
On 9 Oct 2008 at 7:03, asit wrote:
I have downloaded some header files with is corresponding c files. I
put them all in a single directory(bin ) and with my own code using
fuctions declared in header file and defined in that C file, I
compiled it.

But after this when I build the exe(I am using XP), I am getting
linker errors ????
Compile each .c file to a .o file (possibly .obj on MS Windows). When
you link the program, tell the linker about each .o file you need to
link with.

If you're compiling on the command line, you can probably just pass all
the .o files as arguments. If you're using an IDE, there's probably a
notion of "Project" where you can put together lots of .c files to make
a single program, and there may be a "Project options" menu where you
can specify how to link things.

If you're having trouble, you need to mention which IDE you're using -
there'll be people here who ca answer questions about any common IDE,
but they are all slightly different so you need to specify the one
you're using.

Oct 9 '08 #3
On Oct 9, 12:52 pm, Antoninus Twink <nos...@nospam.invalidwrote:
On 9 Oct 2008 at 7:03, asit wrote:
I have downloaded some header files with is corresponding c files. I
put them all in a single directory(bin ) and with my own code using
fuctions declared in header file and defined in that C file, I
compiled it.
But after this when I build the exe(I am using XP), I am getting
linker errors ????

Compile each .c file to a .o file (possibly .obj on MS Windows). When
you link the program, tell the linker about each .o file you need to
link with.

If you're compiling on the command line, you can probably just pass all
the .o files as arguments. If you're using an IDE, there's probably a
notion of "Project" where you can put together lots of .c files to make
a single program, and there may be a "Project options" menu where you
can specify how to link things.

If you're having trouble, you need to mention which IDE you're using -
there'll be people here who ca answer questions about any common IDE,
but they are all slightly different so you need to specify the one
you're using.
thanx...it works to some extent
Oct 9 '08 #4
asit <li*****@gmail.comwrote:
On Oct 9, 12:52 pm, Antoninus Twink <nos...@nospam.invalidwrote:
On 9 Oct 2008 at 7:03, asit wrote:
I have downloaded some header files with is corresponding c files. I
put them all in a single directory(bin ) and with my own code using
fuctions declared in header file and defined in that C file, I
compiled it.
But after this when I build the exe(I am using XP), I am getting
linker errors ????
Compile each .c file to a .o file (possibly .obj on MS Windows). When
you link the program, tell the linker about each .o file you need to
link with.

If you're compiling on the command line, you can probably just pass all
the .o files as arguments. If you're using an IDE, there's probably a
notion of "Project" where you can put together lots of .c files to make
a single program, and there may be a "Project options" menu where you
can specify how to link things.

If you're having trouble, you need to mention which IDE you're using -
there'll be people here who ca answer questions about any common IDE,
but they are all slightly different so you need to specify the one
you're using.

thanx...it works to some extent
That's nice. And when you want to know how you should _really_ do it, so
that it works better than "to some extent", ask in a newsgroup that
deals with your compiler, where you won't be given such half-baked
answers as the above.

Richard
Oct 9 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Wolfgang | last post by:
I have a problem with linking my CPP Code under a irix6 machine (sgi, UNIX). In my CPP code I use some Functions which are written in Python. So its a kind of CPP wrapper for my Python functions In...
3
by: Saurabh Aggrawal | last post by:
Hi, I am porting an application for 64-bit AMD processor and while linking the application i am getting the following errors: Processing directory uidll... Linking DLL...
7
by: wmkew | last post by:
Hello everyone I'm encountering a R6002 Runtime error and several bugs when trying to generate a simple Managed C++ application with .NET 2003. The main problem seems to arise from linking with...
1
by: Joannes Vermorel | last post by:
I am currently trying to port a small open source scientfic library written in C++ to .Net. The code (including the VS solution) could be found at http://www.vermorel.com/opensource/selfscaling.zip...
1
by: Kay | last post by:
I already specified to ignore specific library: MSVCPRT.lib MSVCRT.lib LIBC.lib MSVCRTD.lib LIBCD.lib command line is like: /INCREMENTAL /NOLOGO /DLL /NODEFAULTLIB:"MSVCPRT.lib MSVCRT.lib LIBC.lib...
4
by: Sanjay Kumar | last post by:
Folks ! I am working with VC++ after a long time and having problem linking latest xerces 2.7 in VC++ 2005 Express Edition. I have done following: 1. downloaded and unpacked the the...
0
by: Adam Clauss | last post by:
I have managed C++ library (is bridging between a Win32 .dll and a C# application). All was well when compiled under VS2003, but I am running into a series of linking errors when compiling...
0
by: Philip Lowman | last post by:
I am in the process of trying to migrate a couple of build solutions to Visual Studio Express 2005 from VS 2003 Professional and I am running into a weird C/C++ runtime library linking issue when...
0
by: xieml2007 | last post by:
Dear Madam or Sir, I encountered one problem which is quite similiar to the discussions launched at the web site: http://www.thescripts.com/forum/thread280324.html
0
by: dotyet | last post by:
Hi Everyone, I am trying to build a DB2 UDB UDF which can perform regex over the table data. The user defined function will call an external .dll file to do the task. I am referring to the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.