473,657 Members | 2,851 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with command line compiler.

I'm using the vbc.exe to compile a .dll automatically for me. I have
all my framework references and imports setup correctly. And it will
compile just fine, with a few lines of code commented out.

Here's the problem. I have a vb class in my project("gamela n") called
"Utilities" . It's a public class, with a bunch of public shared
methods I use through out the site. So when I try to compile, I get
this error:

C:\xxx\xxx\Comm ents.aspx.vb(64 ) : error BC30451: Name 'gamelan' is
not declared.

intUserID = gamelan.Utiliti es.CIntSpecial( strUserID)
~~~~~~~

I can compile from Visual Studio just fine. But from the command
line, I get this error whenever I access the "gamelan.Utilit ies"
class. How does the IDE get around this problem when it compiles?
How can I make a reference/import to a class that hasn't been compiled
yet (since it's PART of the project itself)?
Nov 20 '05 #1
1 1579
* cr*****@hotmail .com (Matt Creely) scripsit:
I'm using the vbc.exe to compile a .dll automatically for me. I have
all my framework references and imports setup correctly. And it will
compile just fine, with a few lines of code commented out.

Here's the problem. I have a vb class in my project("gamela n") called
"Utilities" . It's a public class, with a bunch of public shared
methods I use through out the site. So when I try to compile, I get
this error:

C:\xxx\xxx\Comm ents.aspx.vb(64 ) : error BC30451: Name 'gamelan' is
not declared.

intUserID = gamelan.Utiliti es.CIntSpecial( strUserID)
~~~~~~~

I can compile from Visual Studio just fine. But from the command
line, I get this error whenever I access the "gamelan.Utilit ies"
class. How does the IDE get around this problem when it compiles?
How can I make a reference/import to a class that hasn't been compiled
yet (since it's PART of the project itself)?


Add "/rootnamespace:g amelan" to your "vbc.exe" command line.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1074
by: JiggaHertz | last post by:
I'm trying to build the python interface to fuse and this is my first time using python. I'm getting the following errors # python setup.py build running build running build_py running build_ext Traceback (most recent call last): File "setup.py", line 16, in ? py_modules=,
2
4830
by: Solomon Obi | last post by:
I am running DB2 Express V 8.1 on Windows XP I have installed the Visual C/C++ compiler the command to invoke the compiler is cl I am attempting to install the stored procedure defined below CREATE PROCEDURE TESTQC.ECMP2000 (INOUT str VARCHAR(32) for bit data)
9
4552
by: happy | last post by:
I need to download Command line C compiler ASAP ? Where can I find the latest and moden one ?
3
2674
by: Paul | last post by:
Dear world, We are having issues with Windows 2000 SP4 and Pre-Compiled Header (PCH) files that have been previously compiled on Windows XP using ..NET 2003. Recompiling the PCH files on Windows 2000 SP4 using /Yc does work, but we really want to ship one PCH file to our customers that will work on all versions of Windows. Thanks very much
6
3445
by: Uli | last post by:
Hello, I'm trying to use a DLL (by static linking) which was compiled with Borland C++Builder (BCB) in Visual C++ (Visual-Studio 2003). All functions are declared with the directive 'extern "C"' so that a cross-compiler-usage must be possible. I created an import library (.lib) for MSVC by using the LIB function and using a .DEF file (as described in KB131313 -
1
6318
by: PangFromChina | last post by:
Platform:window 2000 professional, VC++6.0 +SP5 STLport: STLport 5.0.2 While test STLport following "STLport README for Microsoft Visual C++ compilers." of README.msvc(readme.txt), there is a error:NMAKE: fatal error U1077: 'cl': return code '0x2'stop. I can build STLport without any error but a warning, after buiding I test it, a error is appear.
4
4991
by: Bit byte | last post by:
I have a project that I normally build (without problems) from the DevStudio IDE. However, I have embarked on automating all my builds (this test project being one of several). The project creates a DLL. I am able to build the project without any probs in the IDE, however - when I build the project from the command line (using the same options shown in the 'Command line' node in the 'Project Settings' dialog box), I get the following...
15
1590
by: Stoneforever | last post by:
Hi, I got a problem, I have three files, for example: /****a.h*******/ #define X1 10 #define X2 10 ...................... /****b.c*******/ #include "a.h" int add(int x,int y)
3
1231
by: Jack Dowson | last post by:
Hello Everybody: I'm new to c.I am wondering who can tell me how to use API in my c program. Any help will be greatly appreciated! Dowson.
0
1402
by: chandan agarwal | last post by:
hi I have been given the task of building vc++ programs at the command line using make software. i have installed gnu make-3.81 version. i was able to build and run makefiles for turbo c++. but when i tried it for vc++ i faced a lot of problems. i found that vc++ has its own linker link and compiler cl. i am giving u a makefile tht was made for turbo c++. can u tell me what changes to i need to do make in it to make it run at the...
0
8303
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8821
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8502
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1941
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.