Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » VS.net 2003 and class templates
Closed Thread
Old 10-20-2004, 06:00 PM   #1 (permalink)
 
Ultra Techie

Join Date: Oct 2003

Posts: 504

ThirtySixBelow

Default VS.net 2003 and class templates

Whenever I create a class template using vs.net 2003 and I use a separate cpp file to define my member functions i get a linking error because i guess it can't pick which cpp file to link with the h file. When i impliment my member functions in the h file it works fine, but as soon as i move them to the cpp file it no longer works. Someone suggested that i remove the cpp file but leave it in the directory, but i tired that and it still gave me a linking error, an idea what i need to do to fix this?? Only reason being is that my header file is quite long and i would rather have the implimentations in their own cpp file.
__________________
<img src = \"http://filebox.vt.edu/users/chuck527/My%20Work/Sig.jpg\">
ThirtySixBelow is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On