📄 manual_compiling_with_universal_driver.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html lang="en"><head><title>Compiling with Universal Driver - Universal Driver Documentation</title><meta http-equiv="Content-type" content="text/html; charset=iso-8859-1"><meta name="robots" content="index,follow"><link rel="shortcut icon" href="/favicon.ico"><link rel="stylesheet" href="/dscud/style/wikiprintable.css"><script type="text/javascript" src="/dscud/style/wikibits.js"></script><style type='text/css'><!--a.new, #quickbar a.new { color: #CC2200; }#quickbar { position: absolute; top: 4px; left: 4px; border-right: 1px solid gray; }#article { margin-left: 152px; margin-right: 4px; }//--></style></head><body bgcolor='#FFFFFF'><div class='titlebox'><h1 class='pagetitle'>Compiling with Universal Driver</h1><span class='subtitle'>Universal Driver Documentation</span></div><div class='navbox'><a href="manual_Main_Page.html" class='printable' title ="Main Page">Main Page</a> || <a href="manual_Table_of_Contents.html" class='printable' title ="Table of Contents">Table_of_Contents</a> || <a href="http://www.diamondsystems.com/">Diamond Systems Website</a></div></div><div class='bodytext'><p>
<h2><a name="THIS_PAGE_WILL_BE_DELETED_SOON">THIS PAGE WILL BE DELETED SOON</a></h2>
<h2><a name="MOVE_INSTRUCTIONS_TO_OS_SPECIFIC_PAGE">MOVE INSTRUCTIONS TO OS SPECIFIC PAGE</a></h2>
<p>
In order to compile your applications using the Universal Driver, you must first perform several tasks:
You must ensure that the proper header and library files are copied to a known location. For DOS, Windows 95/98, and Windows NT/2000/XP development, you may install the files anywhere you like, and point to this location when you compile your project. In Linux, when you install the RPM, the files will be located in the /usr/local/dscud5 directory.
You must include the above-mentioned header and library files in your project when compiling. Your INCLUDE directory must point to the location of the dscud.h file, and your LIB directory must point to the appropriate library file (dscudbcl.lib for 16-bit DOS, dscud.lib for 32-bit Windows 95/98/NT/2000, or libdscud5.a for Linux).
If you are using DOS or Windows 95/98/NT/2000/XP, you must remember to compile your applications using single byte alignment packed data structures. For DOS applications, you can set this in the Borland IDE by setting the compiler options to compile using BYTE rather than WORD alignment. For Windows applications, you can set this in Microsoft Visual Studio by setting the Code Generation options in the project settings to use 1-byte structure alignment. If you are using Linux, you do not have to worry about this issue.
<p>
Notes for Linux
<p>
The driver uses Pthreads internally for multithreading. For this reason, developers must link with libpthread when compiling their applications. An example compile command is:
<p>
$ gcc -o myapp myapp.c -L/usr/local/dscud5 -ldscud5 -lpthread
<p></div><p><em> <br> This page was last modified 22:29, 2 Aug 2005.<br>Copyright (c) 2004 Diamond Systems. All Rights Reserved.</em><!-- Time since request: 0.15 secs. --></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -