473,324 Members | 2,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

linker error in building DLL

86
while building dll file i am getting an error....

[Linker error] undefined reference to `WinMain@16'

now i know __declspec(dllexport) is microsoft specific keyword, is it that for this reason it is trying to link WinMain()...

moreover once i encountered using BOOL APIENTRY DllMain() ..now that is for windows dll....but what if i want generic one....
May 28 '07 #1
2 1615
weaknessforcats
9,208 Expert Mod 8TB
You have to decide whether to build a dll or a Windows program.

A dll does pot have a WinMain().

How are you building the dll??
May 28 '07 #2
ayan4u
86
You have to decide whether to build a dll or a Windows program.

A dll does pot have a WinMain().

How are you building the dll??
ok sorry i figured out my problem....i dd some extensive research on dll and specially on WIN32 DLL's.....actually am using BOOL APIENTRY DllMain().....my problem is that in project options i forgot to check WIN32 DLL instead to WIN32 console....so my linker is repeatedly trying to link WinMain()....and hence such stupid hindrance....

neways can u say why are we using APIENTRY instead of WINAPI as function qualifier.......
May 28 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jim | last post by:
All, I'm trying to debug a Python GPF while running a script that we've written. After fixing up some of the paths for the Python build and successfully building Python from ActiveState source,...
1
by: Laszlo | last post by:
Hi all, As a novice I installed PostgreSQL 7.2.1 on Win32 and works, Borland C++Builder Enterprise Suite 5.0 (build 12.34) what works too. I decided to combine these two programs and develop a...
4
by: Jon Pope | last post by:
For the last six months, I've been able to compile my C# solution in VS2003. Suddenly this morning I get the following error: "Satellite build for culture 'fr' failed. The assembly linker could...
1
by: Paul Brun | last post by:
I have a library that is built in VC6 which contains references to the new iostream instead of "iostream.h" to accomodate my .NET Studio built C++ application. However, in debug mode, I obtain...
1
by: sg10241024 | last post by:
Hello, I'm programming MS Visual Studio. Net 2003 Professional. I'm a beginner and now I have a problem while building my new program. I've got linker error LNK2001: unresolved external symbol...
9
by: Peter Oliphant | last post by:
For some reson my code is generating a LNK1215 error, which 'suggests' I re-install VS C++. So I did. which did NOT solve the problem. The weid part is it seems to be caused by my one CPP file, but...
2
by: mshngo | last post by:
Hi, I am having the following trouble in compiling DLL on windows. Suppose I want to compile module A into a DLL library, and I want to declare an external interger n in A. My intention is to...
12
by: kath.neumann | last post by:
Hi, I just started to get a grip on C++ and and went through the tutorial. However, not even the standard "hello world" exercise works out :( I do get a linker error " Unresolved external...
1
by: Deepath G | last post by:
This is deepath.. I am getting some linker error when i am trying to connect Websphere MQ using Borland C++ Builder 2006 using imqi.hpp on windows. Error Message ----------------------- ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.