Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming

Reply
 
LinkBack Thread Tools
Old 08-22-07   #1 (permalink)
Audiophile
 
intel nvidia

Join Date: Jan 2006
Posts: 385

Rep: 15 2-play Unknown
Unique Rep: 13
Folding Team Rank: 2700
Trader Rating: 1
Default c++ noob help please :)

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.

System: My System
CPU
E6600 @ 3.2
Motherboard
ASUS P5B-V
Memory
Corsair XMS2 PC-6400
Graphics Card
Gainward 7900GS
Hard Drive
maxtor
Sound Card
onboard
Power Supply
OCZ Stealth Xtreme 500w
Case
ICute UL01 < search
CPU cooling
OCZ vindicator
OS
XP SP2
Monitor
LG M1921A
2-play is offline I fold for Overclock.net   Reply With Quote
Old 08-22-07   #2 (permalink)
Turing Test is Overrated
 
DuckieHo's Avatar
 
intel nvidia

Join Date: Nov 2006
Location: In a Chair.
Posts: 25,620

Rep: 3034 DuckieHo is a guruDuckieHo is a guruDuckieHo is a guruDuckieHo is a guruDuckieHo is a guruDuckieHo is a guruDuckieHo is a guruDuckieHo is a guruDuckieHo is a guruDuckieHo is a guruDuckieHo is a guru
Unique Rep: 1386
Folding Team Rank: 896
Trader Rating: 39
Default

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

Quote:
Originally Posted by trith View Post
I misplaced a whole motherboard once....still haven't found it and it's been 2 years and I live in the same house. I think I have gremlins.

System: My "DF-DIE" Replacement
CPU
Q6600 (3.7GHz)
Motherboard
Asus P5E X38 (MF1208 BIOS)
Memory
2x2GB OCZ Reaper 1096MHz
Graphics Card
8800GT (729/1836/2088)
Hard Drive
PERC 5/i: 3xRAID0 Raptor 74GB + 7200.10 250GB
Sound Card
X-Fi XtremeMusic
Power Supply
Corsair 620HX
Case
Li Lian PC-V2100 [10x120mm fans]
CPU cooling
FuZion V2 + Quad-Heatercore
GPU cooling
MCW60 + Iandh HS + DDC-3.2
OS
Vista Ultimate 64
Monitor
Samsung 226BW "C" + Sceptre 19"
DuckieHo is offline I fold for Overclock.net Overclocked Account DuckieHo's Gallery   Reply With Quote
Old 08-22-07   #3 (permalink)
Well Blow Me Down!
 
h00chi3's Avatar
 
intel nvidia

Join Date: Mar 2007
Location: Barksdale AFB
Posts: 2,109

Rep: 296 h00chi3 is a proven memberh00chi3 is a proven memberh00chi3 is a proven member
Unique Rep: 200
Folding Team Rank: 55
Team Name: The Replacements
Hardware Reviews: 1
Trader Rating: 6
Default

http://uw714doc.sco.com/en/SDK_cprog/CONTENTS.html

System: Midget with a YoYo
CPU
Q6600 @ 3.2/Vcore 1.35
Motherboard
evga 680i
Memory
G.Skill HZ 2x2gb 4-4-4-10
Graphics Card
3 x XFX 8800GT 24/7 f@h
Power Supply
Antec TPQ 850
Case
Modded Rocketfish
CPU cooling
fuzion v2 | MCR320 | 655
GPU cooling
Thermaltake DuOrb x 3
OS
XP/Vista/Arch/Mint
h00chi3 is offline I fold for Overclock.net Overclocked Account h00chi3's Gallery   Reply With Quote
Old 08-25-07   #4 (permalink)
AMD Overclocker
 
decompiled's Avatar
 
amd nvidia

Join Date: Feb 2006
Location: Redsox Nation
Posts: 516

Rep: 50 decompiled is acknowledged by some
Unique Rep: 48
Hardware Reviews: 9
Trader Rating: 0
Default

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.

System: Slow Poke
CPU
AMD X2 4400
Motherboard
MSI K8N Diamond +
Memory
3gb TCC5
Graphics Card
eVGA 7900GS
Hard Drive
74gb Raptor + Raid 1 640's
Sound Card
Audigy SE
Power Supply
OCZ 520 PowerStream
Case
Antec P180
CPU cooling
Stock AMD
GPU cooling
Stock eVGA
OS
Vista x64
Monitor
Dell 1905FP
decompiled is offline   Reply With Quote
Old 08-25-07   #5 (permalink)
Photography nut
 
dangerousHobo's Avatar
 
amd nvidia

Join Date: Dec 2005
Location: ~/
Posts: 3,484

FAQs Submitted: 7
Folding Team Rank: 451
Trader Rating: 0
Default

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:
Originally Posted by Melcar
Only one reasonable way to solve this... a dance off.

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

System: Anomaly
CPU
Athlon 3700 SD(KACAE)0546 @3.02ghz
Motherboard
DFI UT nF4 Ultra-D
Memory
G.Skill 2x512 UTT(BH-5)
Graphics Card
evga 6800gs
Hard Drive
Maxtor 300GB + WD 250GB
Sound Card
onboard
Power Supply
Ultra 500w V-series
Case
one from Ultra
CPU cooling
Big Typhoon
GPU cooling
80mm fan mounted on
OS
Arch64 & Slackware 12.1
Monitor
Acer AL2216W 22" WS LCD
dangerousHobo is offline I fold for Overclock.net Overclocked Account dangerousHobo's Gallery   Reply With Quote
Old 08-27-07   #6 (permalink)
Programmer
 
Join Date: Aug 2007
Posts: 12

Rep: 4 PassMark Unknown
Unique Rep: 4
Trader Rating: 0
Default

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).
PassMark is offline   Reply With Quote
Old 08-28-07   #7 (permalink)
New to Overclock.net
 
intel nvidia

Join Date: Aug 2007
Posts: 40

Rep: 1 my_sql Unknown
Unique Rep: 1
Trader Rating: 0
Default

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)
__________________
System: My Computer -- Slackware 12 -- hacklab
CPU
Intel E6850 @ 4.015GHz
Motherboard
DFI BLOOD IRON P35-T2RL
Memory
1GB ULTRA PC6400
Graphics Card
eVGA GeForce FX5500PCI
Hard Drive
80GB Western Digital sata
Sound Card
onboard
Power Supply
400W Ultra V-Series
Case
Ultra Wizard Mid Tower
CPU cooling
stock
GPU cooling
stock
OS
gentoo
Monitor
17" Westinghouse LCD
my_sql is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 06:05 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.45599 seconds with 8 queries