Wrox Programmer Forums
|
BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8
This is the forum to discuss the Wrox book Professional C# 2008 by Christian Nagel, Bill Evjen, Jay Glynn, Morgan Skinner, Karli Watson; ISBN: 9780470191378
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 24th, 2008, 06:38 PM
Registered User
 
Join Date: Aug 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Compile Errors

Chapter 2: C# Basics, Page 58

I am using the code downloaded from this site. When I type the following command,
csc /t:library MathLibrary.cs
the dll gets created in the directory. But when I type,
csc MathClient.cs /r:MathLibrary.dll
I get the following errors.

MathClient.cs(10,10): error CS0246: The type or namespace name 'MathLib' could not be found (are you missing a using directive or an assembly reference?)
MathClient.cs(10,32): error CS0246: The type or namespace name 'MathLib' could not be found (are you missing a using directive or an assembly reference?)


Any idea what might be wrong?

TP

Newbie!!
 
Old March 4th, 2011, 08:07 AM
Authorized User
 
Join Date: Mar 2011
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Firstly the code is library file and when u build it you will get the DLL.

Now you have to create a fresh project . Add reference to the Dll that was mentioned in the above step and use the library :)

Welcome to C# programming

H2H





Similar Threads
Thread Thread Starter Forum Replies Last Post
CH 14 Pages 749-753 Compile Errors Razzy The Pug BOOK: Ivor Horton's Beginning Visual C++ 2005 1 March 28th, 2008 10:20 AM
Compile Louisa VB.NET 2002/2003 Basics 1 November 23rd, 2005 10:14 AM
Can't get errors to display with <html:errors> michaeldill JSP Basics 0 August 2nd, 2004 01:47 PM
errors and fixing errors Droopy XML 0 August 26th, 2003 12:47 AM
Errors Errors DB Errors Ljhopkins VS.NET 2002/2003 0 July 15th, 2003 12:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.