Author Topic: Pelle's Forum  (Read 29286 times)

jj2007

  • Member
  • *****
  • Posts: 12678
  • Assembler is fun ;-)
    • MasmBasic
Re: Pelle's Forum
« Reply #45 on: January 19, 2013, 10:03:35 PM »
Thanks, Michael. So this one doesn't run into an exception. Interesting. Will look into it asap :t

qWord

  • Member
  • *****
  • Posts: 1475
  • The base type of a type is the type itself
    • SmplMath macros
Re: Pelle's Forum
« Reply #46 on: January 19, 2013, 10:16:35 PM »
If I use the static libraries libgslcblas.a and libgsl.a (from the package) with PellesC, it work as expected.
MREAL macros - when you need floating point arithmetic while assembling!

jj2007

  • Member
  • *****
  • Posts: 12678
  • Assembler is fun ;-)
    • MasmBasic
Re: Pelle's Forum
« Reply #47 on: January 20, 2013, 09:31:38 AM »
Thanks a lot, qWord & Michael & Japheth. I got the small test file working with original .a libraries :t

Right now I am struggling with the Unix "_iob" thing

The simple source compiled fine with the Masm32 msvcrt.lib, and stopped crashing once I replaced fprintf(stderr, "Whatever\n"); with printf ("Whatever\n"); ::)

The more complex source (which I cannot post) now complained about malloc multiply defined... so I had to remove \Masm32\lib\msvcrt.lib from the linker's commandline, which made 'the Unix "_iob" thing' reappear. So I decided to revert to Erol's tools, and to create a tiny msvcrt.lib that contains only (msvcrt.def)
LIBRARY msvcrt
EXPORTS
"__iob_func"
"__p__iob"
"_iob"


Guess what? It works :t