|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming | |
c++ noob help please :)
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | ||||||||||||
|
Audiophile
|
am learnign c++ got sams learn c++ in 21 days so far its a brill book, but its not compiler specific, it keeps going on about compile this code link and run,
what im stuck on is what is linking and how can this be done in MS visual c++ express 2005? ive searched around with no luck yet what does linking actually do? does it take 2 pieces of code and put them in format lets say in one peice of source code? if someone could help would be great
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
||||||||||||
|
|
|
|
#2 (permalink) | |||||||||||||
|
Turing Test is Overrated
|
huh? Please provide more concise examples?
__________________
To answer most of your questions: (1) a fridge cannot cool a PC (2) 64-bit OS for over 3.4GB (3) If a PCIe card fits, it should work (4) Resolution, not screen size (5) If you have a question, it is not news (6) Report, not respond to Spam (7) Single/Non-Modular Rail PSUs are not always better than Multi-Rail/Modular
|
|||||||||||||
|
|
|
|
#3 (permalink) | ||||||||||
|
Well Blow Me Down!
|
__________________
|
||||||||||
|
|
|
|
#4 (permalink) | |||||||||||||
|
AMD Overclocker
|
For example using gcc and compiling... if you are using one of the libraries like Math.h it would look like this:
gcc file.c -lm I'm not sure in visual studio as I write all my C in console linux.
|
|||||||||||||
|
|
|
|
|
#5 (permalink) | ||||||||||||||
|
Photography nut
![]() |
In Virtual Studio I believe all you need to do is "build" and then "run".
They make it pretty easy. It be different if you were using GCC/G++ or some other compiler, b/c then you'd have to compile the code and then link them together, VS takes care of the details for you I guess you could say.
__________________
"UNIX was never designed to keep people from doing stupid things, because that policy would also keep them from doing clever things." - Doug Gwyn Try out the latest Programming Challenge Quote:
CPU-Z Validation @ 2.97-prime95 stable 16 hours @ 1.48v Proof | CPU-Z Validation @ 3.15 Getting Mouse Side Buttons to work in Linux, Compile a custom Kernel, More
|
||||||||||||||
|
|
|
|
#6 (permalink) |
|
Programmer
|
Yes, Visual Studo C++ 2005 allows you to compile & link (as parts of the build process).
Compiling converts C++ code into 'object' code. The compiler produces the machine language instructions that the CPU can execute. The compiler produces 1 objecy file per source file. The linker links together all the object files to create a single .exe file. Having the compile and link steps seperate allows for faster rebuilding of huge projects as you only need to re-compile the source code that has changed. My advice would also be to purchase a intro book on Visual Studio (if you are doing Windows development). |
|
|
|
|
|
#7 (permalink) | |||||||||||||
|
New to Overclock.net
|
using Dev-C++ is a far better solution for the Windows C++ developer; just press F9, to compile, link, AND run at the same time. Just google it. Once you are more comfortable with C++, then start using VS as it has many beautiful and amazing opportunities for the developer who doesnt care about the slightly more efficient .exe's made in a Linux compiler (aka GCC which I use)
__________________
|
|||||||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|