chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Problem with Chicken +wxwindows (fwd)


From: Mark Baily
Subject: [Chicken-users] Problem with Chicken +wxwindows (fwd)
Date: Sun, 17 Apr 2005 08:26:45 +1000

On Fri, 15 Apr 2005, felix winkelmann wrote:

> One more thing: try to add C_NO_PIC_NO_DLL to the list
> of defines for the compiled Scheme program.

OK, with that defined, I had to change the libraries to the static
versions ie. libchicken-static.lib and libstuffedchicken-static.lib,
or else I got unresolved symbols.

> > Can you send me the complete grid.cpp file with your changes?
> > Your setup seems ok to me. The CHICKEN_initialize() call is not
> > really necessary (invoking test_chicken() should handle that
> > automatically).
> >
> > Does your example work in a simple C++ project (without wxWindows)?

Ahh, you're right it doesn't work without wxWindows either.
I tried making a fresh C++ windows project and here is the main file,
testchicken.cpp:
----------------------------------------------------------------------------
// testchicken.cpp : Defines the entry point for the application.
//

#include "stdafx.h"
#include "testchicken.h"
#define MAX_LOADSTRING 100

#include <fstream>
#include <iostream>


extern "C" {
        int test_chicken(int);
}

using namespace std;

int APIENTRY _tWinMain(HINSTANCE hInstance,
                HINSTANCE hPrevInstance,
                LPTSTR    lpCmdLine,
                int       nCmdShow)
{
        ofstream k;
        //test_chicken(3);
        k.open("k.txt", ios::out);
        k << "hellogg\n";
        double x = 0;
        for (int i = 0; i < 100; i++) {
                for (int j = 0; j < 100; j++) {
                        for (int k = 0; k < 100; k++) {
                                x += i+j+k;
                        }
                }
        }
        k << x << "\n";
        k.close();

}

----------------------------------------------------------------------------

With the test_chicken(3) line commented out, "k.txt" gets created, but
with it in in, "k.txt" never gets created.


> >
> > Which version of Chicken are you using?

Using 1.89




reply via email to

[Prev in Thread] Current Thread [Next in Thread]