[Tutor] Compiling problem using SWIG to create a dll under windows

Keule m_konermann@gmx.de
Fri, 01 Feb 2002 16:45:27 +0100


--------------090205090309040109020501
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi @ ALL !

I think i solved my first problem creating a .dll with Visual C++, 
because first i choosed only the option "win32 dynamic link library" and 
not the "MFC AppWizard". The AppWizard also creates a .def file where 
are informations about the Exports from the new .dll file.
But now, after compiling the the whole code, using the AppWizard, the 
following Error occurs:

Kompilierung läuft...
simanneal.cpp
c:\arbeit_diplomarbeit\__optimierer\testlauf\bla bla\simanneal.cpp(496) 
: fatal error C1010: Unerwartetes Dateiende waehrend der Suche nach der 
Direktive fuer die vorkompilierte Header-Datei
simanneal_wrap.cpp
c:\arbeit_diplomarbeit\__optimierer\testlauf\bla 
bla\simanneal_wrap.cpp(34) : warning C4005: 'SWIGEXPORT' : 
Makro-Neudefinition
        c:\arbeit_diplomarbeit\__optimierer\testlauf\bla 
bla\simanneal_wrap.cpp(32) : Siehe vorherige Definition von 'SWIGEXPORT'
....
Generieren von Code...
Fehler beim Ausführen von cl.exe.

bla bla.dll - 7 Fehler, 4 Warnung(en)


Perhaps, i have to write additional information in the .def file of the 
functions, i want to be exported from the new .dll
Have anyone had this kind of problem ?

Greetings
Marcus


--------------090205090309040109020501
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html>
<head>
</head>
<body>
Hi @ ALL !<br>
<br>
I think i solved my first problem creating a .dll with Visual C++, because
first i choosed only the option "win32 dynamic link library" and not the
"MFC AppWizard". The AppWizard also creates a .def file where are informations
about the Exports from the new .dll file.<br>
But now, after compiling the the whole code, using the AppWizard, the following
Error occurs:<br>
<br>
<i>Kompilierung l&auml;uft...<br>
simanneal.cpp<br>
<a class="moz-txt-link-freetext" href="c:\arbeit_diplomarbeit\__optimierer\testlauf\bla">c:\arbeit_diplomarbeit\__optimierer\testlauf\bla</a> bla\simanneal.cpp(496) :
fatal error C1010: Unerwartetes Dateiende waehrend der Suche nach der Direktive
fuer die vorkompilierte Header-Datei<br>
simanneal_wrap.cpp<br>
<a class="moz-txt-link-freetext" href="c:\arbeit_diplomarbeit\__optimierer\testlauf\bla">c:\arbeit_diplomarbeit\__optimierer\testlauf\bla</a> bla\simanneal_wrap.cpp(34)
: warning C4005: 'SWIGEXPORT' : Makro-Neudefinition<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a class="moz-txt-link-freetext" href="c:\arbeit_diplomarbeit\__optimierer\testlauf\bla">c:\arbeit_diplomarbeit\__optimierer\testlauf\bla</a> bla\simanneal_wrap.cpp(32)
: Siehe vorherige Definition von 'SWIGEXPORT'<br>
....<br>
Generieren von Code...<br>
Fehler beim Ausf&uuml;hren von cl.exe.<br>
<br>
bla bla.dll - 7 Fehler, 4 Warnung(en)</i><br>
<br>
<br>
Perhaps, i have to write additional information in the .def file of the functions,
i want to be exported from the new .dll <br>
Have anyone had this kind of problem ?<br>
<br>
Greetings<br>
Marcus<br>
<br>
</body>
</html>

--------------090205090309040109020501--