www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - GD library compilation problem

↑ ↓ ← "Brian Gardner" <briangr friberg.us> writes:
Hello,

I tried to compile GD library (http://www.boutell.com/gd/) v2.0.22 with DMC
v8.40 but I got errors:
{
^
gd.c(75) : Error: initializer or function body for dllimport not allowed
{
^
gd.c(122) : Error: initializer or function body for dllimport not allowed
{
^
gd.c(165) : Error: initializer or function body for dllimport not allowed
{
^
gd.c(204) : Error: initializer or function body for dllimport not allowed
{
^
gd.c(210) : Error: initializer or function body for dllimport not allowed
Fatal error: too many errors
--- errorlevel 1

Brian
Apr 12 2004
↑ ↓ → "Walter" <walter digitalmars.com> writes:
What the error is saying is that if a declaration is being imported, i.e. if
it is expected to be implemented in some external dll, then there shouldn't
be a definition of it locally.

"Brian Gardner" <briangr friberg.us> wrote in message
news:c5er15$me2$1 digitaldaemon.com...
 Hello,

 I tried to compile GD library (http://www.boutell.com/gd/) v2.0.22 with

 v8.40 but I got errors:
 {
 ^
 gd.c(75) : Error: initializer or function body for dllimport not allowed
 {
 ^
 gd.c(122) : Error: initializer or function body for dllimport not allowed
 {
 ^
 gd.c(165) : Error: initializer or function body for dllimport not allowed
 {
 ^
 gd.c(204) : Error: initializer or function body for dllimport not allowed
 {
 ^
 gd.c(210) : Error: initializer or function body for dllimport not allowed
 Fatal error: too many errors
 --- errorlevel 1

 Brian

Apr 18 2004