Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > HELP COMPILING FOR TERRARIUM
 

HELP COMPILING FOR TERRARIUM

hi,

i tried compiling the terrarium sample bug using the .net sdk nd i met with these errors... what are they and what should i do to fix them? thenx in advance... i even tried replacing csc with csc /t:library ... even that didn't work... what is wrong?



C:\Program Files\Terrarium 1.2\Client>csc herbie1.0.cs
Microsoft (R) Visual C# .NET Compiler version 7.00.9466
for Microsoft (R) .NET Framework version 1.0.3705
Copyright (C) Microsoft Corporation 2001. All rights reserved.

Herbie1.0.cs(5,7): error CS0246: The type or namespace name 'OrganismBase' could
        not be found (are you missing a using directive or an assembly
        reference?)
Herbie1.0.cs(43,36): error CS0246: The type or namespace name 'Animal' could not
        be found (are you missing a using directive or an assembly reference?)
Herbie1.0.cs(45,9): error CS0246: The type or namespace name 'PlantState' could
        not be found (are you missing a using directive or an assembly
        reference?)
Herbie1.0.cs(55,39): error CS0246: The type or namespace name 'LoadEventArgs'
        could not be found (are you missing a using directive or an assembly
        reference?)
Herbie1.0.cs(74,39): error CS0246: The type or namespace name 'IdleEventArgs'
        could not be found (are you missing a using directive or an assembly
        reference?)
Herbie1.0.cs(17,6): error CS0246: The type or namespace name
        'CarnivoreAttribute' could not be found (are you missing a using
        directive or an assembly reference?)
Herbie1.0.cs(21,6): error CS0246: The type or namespace name 'MatureSize' could
        not be found (are you missing a using directive or an assembly
        reference?)
Herbie1.0.cs(28,6): error CS0246: The type or namespace name 'AnimalSkin' could
        not be found (are you missing a using directive or an assembly
        reference?)
Herbie1.0.cs(29,6): error CS0246: The type or namespace name 'MarkingColor'
        could not be found (are you missing a using directive or an assembly
        reference?)
Herbie1.0.cs(35,6): error CS0246: The type or namespace name
        'MaximumEnergyPoints' could not be found (are you missing a using
        directive or an assembly reference?)
Herbie1.0.cs(36,6): error CS0246: The type or namespace name 'EatingSpeedPoints'
        could not be found (are you missing a using directive or an assembly
        reference?)
Herbie1.0.cs(37,6): error CS0246: The type or namespace name
        'AttackDamagePoints' could not be found (are you missing a using
        directive or an assembly reference?)
Herbie1.0.cs(38,6): error CS0246: The type or namespace name
        'DefendDamagePoints' could not be found (are you missing a using
        directive or an assembly reference?)
Herbie1.0.cs(39,6): error CS0246: The type or namespace name
        'MaximumSpeedPoints' could not be found (are you missing a using
        directive or an assembly reference?)
Herbie1.0.cs(40,6): error CS0246: The type or namespace name 'CamouflagePoints'
        could not be found (are you missing a using directive or an assembly
        reference?)
Herbie1.0.cs(41,6): error CS0246: The type or namespace name 'EyesightPoints'
        could not be found (are you missing a using directive or an assembly
        reference?)
Herbie1.0.cs(12,12): error CS0246: The type or namespace name
        'AuthorInformation' could not be found (are you missing a using
        directive or an assembly reference?)
Herbie1.0.cs(11,12): error CS0246: The type or namespace name 'OrganismClass'
        could not be found (are you missing a using directive or an assembly
        reference?)

C:\Program Files\Terrarium 1.2\Client>

Netscorpion  Monday, October 31, 2005 6:46 AM
You need to tell the compiler where to find the DLLs that your bug is references.  Try...

csc.exe /out:Herbie1.0.dll /target:library /reference:"c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll","c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Drawing.dll","c:\Program Files\Terrarium 1.2\Client\OrganismBase.dll" Herbie1.0.cs

I include the /out option because it makes it easier to change your bugs name.  As you progress, you need only change this parameter to rename your bug (as far as Terrarium is concerned).
David Kocur  Monday, November 07, 2005 2:23 AM
You need to tell the compiler where to find the DLLs that your bug is references.  Try...

csc.exe /out:Herbie1.0.dll /target:library /reference:"c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll","c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Drawing.dll","c:\Program Files\Terrarium 1.2\Client\OrganismBase.dll" Herbie1.0.cs

I include the /out option because it makes it easier to change your bugs name.  As you progress, you need only change this parameter to rename your bug (as far as Terrarium is concerned).
David Kocur  Monday, November 07, 2005 2:23 AM

You can use google to search for other answers

Custom Search

More Threads

• Cool things you can do with taskvision!
• Timer Question
• Question about copy file to system32 under Vista RTM
• DataGrid Selection
• Programmatically reading the thumbprint of digitally signed file.
• Question about MoveCompleted and IsMoving
• Working with Created Property of Text Box
• C # maskedTextBox
• Incorrect parameter
• How To run Pocket TaskVision??