GithubHelp home page GithubHelp logo

interkosmos / fortran-xlib Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 1.0 101 KB

Fortran 2003 interface bindings to Xlib

License: ISC License

Fortran 96.82% Makefile 3.18%
fortran fortran-package-manager fpm x11 xlib

fortran-xlib's People

Contributors

interkosmos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rajkumardongre

fortran-xlib's Issues

The library itself builds fine, but examples fail with the same type mismatch

Sorry, we have the same issue here, though less obvious: build itself is fine, however once I tried to build a provided example, it failed with a familiar picture:

10:fortran-xlib-0552aad2dca2ab3267b30a6f5126eb42d7eb2271 svacchanda$ sudo /opt/local/bin/gfortran-mp-12 -I/opt/local/include/ -L/opt/local/lib/ -o window examples/window/window.f90 libfortran-xlib.a -lX11
examples/window/window.f90:32:13:

   32 |     window = x_create_simple_window(display, root, 0, 0, WIDTH, HEIGHT, 0, black, white)
      |             1
Error: Type mismatch in argument 'parent' at (1); passed INTEGER(8) to INTEGER(4)
examples/window/window.f90:32:13:

   32 |     window = x_create_simple_window(display, root, 0, 0, WIDTH, HEIGHT, 0, black, white)
      |             1
Error: Type mismatch in argument 'border' at (1); passed INTEGER(8) to INTEGER(4)
examples/window/window.f90:32:13:

   32 |     window = x_create_simple_window(display, root, 0, 0, WIDTH, HEIGHT, 0, black, white)
      |             1
Error: Type mismatch in argument 'background' at (1); passed INTEGER(8) to INTEGER(4)
examples/window/window.f90:41:59:

   41 |     call x_set_wm_normal_hints(display, window, size_hints)
      |                                                           1
Error: Type mismatch in argument 'w' at (1); passed INTEGER(8) to INTEGER(4)
examples/window/window.f90:44:64:

   44 |     call x_store_name(display, window, 'Fortran' // c_null_char)
      |                                                                1
Error: Type mismatch in argument 'w' at (1); passed INTEGER(8) to INTEGER(4)
examples/window/window.f90:47:9:

   47 |     gc = x_create_gc(display, window, 0, values)
      |         1
Error: Type mismatch in argument 'd' at (1); passed INTEGER(8) to INTEGER(4)
examples/window/window.f90:49:45:

   49 |     call x_set_background(display, gc, white)
      |                                             1
Error: Type mismatch in argument 'background' at (1); passed INTEGER(8) to INTEGER(4)
examples/window/window.f90:50:45:

   50 |     call x_set_foreground(display, gc, black)
      |                                             1
Error: Type mismatch in argument 'foreground' at (1); passed INTEGER(8) to INTEGER(4)
examples/window/window.f90:53:38:

   53 |     call x_map_window(display, window)
      |                                      1
Error: Type mismatch in argument 'w' at (1); passed INTEGER(8) to INTEGER(4)
examples/window/window.f90:54:40:

   54 |     call x_clear_window(display, window)
      |                                        1
Error: Type mismatch in argument 'w' at (1); passed INTEGER(8) to INTEGER(4)
examples/window/window.f90:61:42:

   61 |     call x_destroy_window(display, window)
      |                                          1
Error: Type mismatch in argument 'w' at (1); passed INTEGER(8) to INTEGER(4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.