www.digitalmars.com         C & C++   DMDScript  

c++.command-line - Warning 134: No Start Address

reply DFortun81 <DFortun81 aol.com> writes:
I just started using this program today, but I have some basic experience in
Dev-C++ with DLLs. The problem is, whenever I try compiling my DLL, it shows
me this error message:

OPTLINK : Warning 134: No Start Address

Do I need anything to make a DLL other than the library items included?

Thanks,
Dylan
Aug 04 2007
parent reply Walter Bright <newshound1 digitalmars.com> writes:
DFortun81 wrote:
 I just started using this program today, but I have some basic experience in
 Dev-C++ with DLLs. The problem is, whenever I try compiling my DLL, it shows
 me this error message:
 
 OPTLINK : Warning 134: No Start Address
 
 Do I need anything to make a DLL other than the library items included?

What do you have for a module definition file?
Aug 06 2007
next sibling parent DFortun81 <DFortun81 aol.com> writes:
// dll.h
////////////////////////////////////
#ifndef _DLL_H_
#define _DLL_H_

/* Begin User-Defined */
#define export extern "C" __declspec (dllexport)
/* End User Defined */

#if BUILDING_DLL
# define DLLIMPORT __declspec (dllexport)
#else /* Not BUILDING_DLL */
# define DLLIMPORT __declspec (dllimport)
#endif /* Not BUILDING_DLL */


class DLLIMPORT DllClass
{
  public:
    DllClass();
    virtual ~DllClass(void);

  private:

};


#endif /* _DLL_H_ */
////////////////////////////////////

I have included everything I have for the DLL in the attached zip file. It was
made for Dev-C++, but that no longer works on Vista so I can't use it.

Thanks for your help.
Aug 06 2007
prev sibling parent Walter Bright <newshound1 digitalmars.com> writes:
Walter Bright wrote:
 DFortun81 wrote:
 I just started using this program today, but I have some basic 
 experience in
 Dev-C++ with DLLs. The problem is, whenever I try compiling my DLL, it 
 shows
 me this error message:

 OPTLINK : Warning 134: No Start Address

 Do I need anything to make a DLL other than the library items included?

What do you have for a module definition file?

Here's a sample module definition you'd use for a DLL: LIBRARY "mydll.dll" EXETYPE NT SUBSYSTEM WINDOWS CODE SHARED EXECUTE DATA WRITE http://www.digitalmars.com/ctg/ctgDefFiles.html
Sep 05 2007