473,748 Members | 8,376 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Manual Compiling

Hello, trying to round out my knowlege here about compiling. To date I
have used VS.Net to do all my compiling "majically" , but I want to
understand how to do it on my own, should the need ever arrise.

It has been suggested to me that I should use the following pattern when
compiling my programs, but I am not sure I understand the "pattern",

Try creating a text file along the following lines where the /r are the
dlls
you are importing. (this may take some time to get right) then do vbc
@yourtextfile at dos prompt. The following should be on one line.

/t:library /out:c:\pathtobi n\nameof.dll c:\pathtofile\n ame.vb
/r:system.dll
/r:system.web.dl l /r:system.xml.dl l /r:system.data.d ll

So I am trying to translate this suggestion...

Any object in which I am specifying an "Imports" statement (VB.Net) in
my program is a "dll". Is this correct?

When I do as suggested on a "helper/utility class" (used by other
classes), I get errors like the following:

error BC30420: 'Sub Main' was not found in 'Compile_Databa seAccess'.
error BC30188: Declaration expected (underlining the following:
/r:Microsoft.Vis ualBasic and /r:System.Collec tions)

This error is followed by several pages of "BC30188: Declaration
expected".

Here is the text file I created per the suggestion above...

/t:library /out:H:\Temp\Tem pASP.NET\DataBa seAccess.dll H:\Temp
\TempASP.NET\Da taBaseAccess.vb /r:system.dll /r:system.web.dl l
/r:system.xml.dl l /r:system.data.d ll /r:Imports System.Data.Sql Client
/r:System.Web.UI /r:System.Web.UI .WebControls /r:Microsoft.Vis ualBasic
/r:System.Config uration /r:System.Collec tions

Any Ideas what I am doing wrong?
Nov 18 '05 #1
1 1905
> Any object in which I am specifying an "Imports" statement (VB.Net) in
my program is a "dll". Is this correct? no. objects are not imported only assemblies via their namespace.

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Jim Heavey" <Ji*******@nosp am.com> wrote in message
news:Xn******** *************** **********@207. 46.248.16... Hello, trying to round out my knowlege here about compiling. To date I
have used VS.Net to do all my compiling "majically" , but I want to
understand how to do it on my own, should the need ever arrise.

It has been suggested to me that I should use the following pattern when
compiling my programs, but I am not sure I understand the "pattern",

Try creating a text file along the following lines where the /r are the
dlls
you are importing. (this may take some time to get right) then do vbc
@yourtextfile at dos prompt. The following should be on one line.

/t:library /out:c:\pathtobi n\nameof.dll c:\pathtofile\n ame.vb
/r:system.dll
/r:system.web.dl l /r:system.xml.dl l /r:system.data.d ll

So I am trying to translate this suggestion...

Any object in which I am specifying an "Imports" statement (VB.Net) in
my program is a "dll". Is this correct?

When I do as suggested on a "helper/utility class" (used by other
classes), I get errors like the following:

error BC30420: 'Sub Main' was not found in 'Compile_Databa seAccess'.
error BC30188: Declaration expected (underlining the following:
/r:Microsoft.Vis ualBasic and /r:System.Collec tions)

This error is followed by several pages of "BC30188: Declaration
expected".

Here is the text file I created per the suggestion above...

/t:library /out:H:\Temp\Tem pASP.NET\DataBa seAccess.dll H:\Temp
\TempASP.NET\Da taBaseAccess.vb /r:system.dll /r:system.web.dl l
/r:system.xml.dl l /r:system.data.d ll /r:Imports System.Data.Sql Client
/r:System.Web.UI /r:System.Web.UI .WebControls /r:Microsoft.Vis ualBasic
/r:System.Config uration /r:System.Collec tions

Any Ideas what I am doing wrong?

Nov 18 '05 #2

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

Similar topics

2
2732
by: Bob Reynolds | last post by:
Hello, I have a requirement to create EAR and WAR packages without using the integrated package building tools built into the IDE. The packages will be created via a deployment script, preferably on a Win2k/Xp machine (less preferably we have a solaris 9x box - however i really need to get this running on xp or i'll be shuffling files between systems constantly) To be honest, all i've ever used is my IDE, in this case Sun One Studio...
0
2068
by: Martin Bless | last post by:
I need to access a MSSQL database (MS-Sql, not MySQL!)and would very much like to use mssql-0.09.tar.gz which is available from http://www.object-craft.com.au/projects/mssql/download.html Unfortunately the binary for Python-2.4 isn't available yet and I'd hate to step back to a previous version. I'm glad I managed to set up my XP machine to being able to compile extensions using the VC++ toolkit which freely availbale from MS. See
4
11361
by: Aaron Queenan | last post by:
When I build a C++ library to .NET using the managed C++ compiler, I get the following error message: Linking... LINK : error LNK2020: unresolved token (0A000005) _CrtDbgReport LINK : error LNK2020: unresolved token (0A000007) memset LINK : error LNK2020: unresolved token (0A000008) free LINK : error LNK2020: unresolved token (0A00000A) atexit LINK : error LNK2020: unresolved token (0A000028) wcscpy LINK : error LNK2020: unresolved...
2
1872
by: Rudy Ray Moore | last post by:
Hi guys, I just upgraded to "Visual Studio .net 2003 7.1 c++" from VS6. Some things I like (proper for loop variable scoping, for example), but some other things are troubling me. One annoying behavior is that the text editor often "hangs" (doesn't let me type) while compiling. Is there a way to fix this so it behaves more like VS6 (editor does not hang while compiling)?
1
2817
by: Jim Heavey | last post by:
I am attempting to understand how to compile programs outside of the IDE. I attemtped to compile my program as follows: vbc /target:library DatabaseAccess.vb /library:system.data /library:system.data.sqlclient I also tried the following: vbc /target:library DatabaseAccess.vb /library:system.data /library:system.data.sqlclient
10
2194
by: Christina N | last post by:
When compiling my ASP.Net application, VS puts the new DLL under the local cached directory 'VSWebCache' in stead of on the server. How can I make it save the DLL file on the server when compiling? I have opened the source code project through 'File - Open - Open project from web..' Best regards, Christina
1
1184
by: David | last post by:
I am attempting to deploy a ASP.NET app on a 3rd party hosting system. I only have FTP access to add files, etc. I tried using the Project copy portion and point to the FTP server, but VS did not transfer the files! Now, I need to manually FTP the files. What core files need to be sent and can they go to a single directory? Also, do I need to make changes to any type of config files on the server? Eg. changes that the install would...
0
905
by: =?Utf-8?B?SmltSGVhdmV5?= | last post by:
I want to learn how to do a manual compile. I found an article on the web which indicated that you can create a response file and then use that response file to do the compile. I was wondering if there is some way I can tell VS2005 to create a response file for the project which is being compiled so that I could use this as a starting point for subsequent compiles? Any place you can steer me to so that I can learn how to do manual...
0
1391
by: =?Utf-8?B?amVmZmVyeQ==?= | last post by:
i need help compiling code dynamically it may involve some reflection so if any one is any good in that field or compiling code this would be a great time to show me what you know. by the way my last weird but serious combo box error i solved my self it was just a simple recompile and some simple code changes and it worked. i will put a link to the code for compiling dynamially here: <a href =...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8830
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
9541
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
9321
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,...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8242
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
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
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2782
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.