bug-guile
[Top][All Lists]
Advanced

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

bug#16032: problem wit scm_new_smob call on ubuntu 13.10


From: Jim Hansson
Subject: bug#16032: problem wit scm_new_smob call on ubuntu 13.10
Date: Tue, 3 Dec 2013 00:38:00 +0100

when trying to make my own extension for guile I have run into a problem with scm_new_smob.

I use the standard packages for guile in ubuntu.
The code should compile on ubuntu 13.10 if you have guile installed.

The problem is that the extension could not be loaded in guile REPL using (load-extension "/path/to/libbuilder.so" "init_builder"), the error I am getting is "File not found" but the path is correct.

if I comment out line 12 in functions.cpp that calls scm_new_smob and then tries to load the extension, it will load.


I am using:
Ubuntu 13.10
guile (GNU Guile) 2.0.9
g++ (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
GNU ld (GNU Binutils for Ubuntu) 2.23.52.20130913
GNU Make 3.81


I tried at first making a smaller example but that would for some reason work instead, without me really understanding what the difference was.

--
// Jim Hansson
// Tel: 0722019664
// http://se.linkedin.com/in/jimhansson
// ===== GPG =====
// key: 9AA942ED
// Fingerprint: 6947 5F70 7D4E D55D FCE2
//                      3A1E 0C21 D543 9AA9 42ED
// ===============

Attachment: functions.cpp
Description: Text Data

Attachment: functions.h
Description: Text Data

Attachment: Makefile
Description: Binary data

Attachment: types.cpp
Description: Text Data

Attachment: types.h
Description: Text Data


reply via email to

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