Programming :: Calling Fftw3 Library Function While Using Gfortran Compiler?
Jul 6, 2011
This is my first post. I am unable to call some of the fftw3 library functions in a very simple fortran code. The code is as follows (the filename is trial.f):
Code:
program trial
implicit none
[code]...
View 5 Replies
ADVERTISEMENT
Jun 4, 2010
I have a question about calling an asm function from C....It doesn't work unless I create an asm variable to hold the value of the function in....Why?Here's the code that doesn't work...
asmfile.s - version one Code: .section .data
mydata: .ascii "this is the message!
.equ mylen, . - mydata
[code]...
View 2 Replies
View Related
Feb 7, 2011
I am doing a web site program and what I need is to call a C program in the PHP cloud.Do u think it would be possible? The web site would get the user input from PHP UI and pass to the C program , the C program would process the function with the user input and output the a PHP page.
View 2 Replies
View Related
Oct 17, 2010
lets look at code in C
Code:
#include <stdio.h>
#include <stdlib.h>
[code]...
View 3 Replies
View Related
Jan 5, 2011
Why the thread stack size can not be changed after calling pthread_attr_setstacksize & pthread_create in a dynamic library? Detail: I write a file thread_factory.c and plan to build it and produce a dynamic library (libthread_factory.so) In the thread_factory.c , there is a routine
[Code]....
And after this, there is application, it will call fct_thread_create(STACK_SIZE_256KB), and then call pthread_attr_getstacksize(), but the stack size return always be a fixed value 0xa01000. (I tried this on Fedora12) But if I build the application source code with the file thread_factory.c directly, the stack size return is right as my expect. I checked the source code of glibc about the routine pthread_create() as below:
[Code]....
View 7 Replies
View Related
Mar 9, 2011
I have a new problem; i want to call a subroutine's fortran which have a function in the argument and the compilation ran properly, but when i execute the program this shows me an "Segmentation fault". This is my c++ program:
Code: //Main.cpp
#include <stdio.h>
#include <iostream>
[code]....
View 2 Replies
View Related
Sep 9, 2010
My calling application will accept only strings and interger. we are replacing RSA bsafe library to openssl. using RSA bsafe, we have generated the private and public key in BER format. Then convert the keys, BER format into ASCII format to send the calling function. (these everything done by using RSA supplied bsafe library) same way i have to right using openssl..i m now able convert the RSA public and private key into DER format
rsa = RSA_generate_key(1024, 3, NULL, NULL);
{
size_t size;
[code]....
View 1 Replies
View Related
Apr 26, 2010
is there any way of using wherey() of turbo c function in gcc compiler like we have for gotoxy(), clrscr() functions.....
View 2 Replies
View Related
Jan 20, 2010
i am not able to install gfortran compiler. i have
1)gcc-fortran-4.3.3.tar.gz.sig
2) gcc-fortran-4.3.3.tar.gz
i got the public key and verified it using coomand
[Code]....
View 12 Replies
View Related
Feb 11, 2009
I have the plugin installed ok and have pasted in a C source file that I know works and am getting the following errors, I think because the linker options need to be set in some way. I cannot copy the errors but they all complain of implicit declaration of functions like this: -
warning: implicit declaration of function strlen
But I have the headers included, is this a linker problem? Here is the code -
#include <stdio.h>
#include <math.h>
int main(){
[code]...
View 2 Replies
View Related
May 2, 2011
I am running on windows, i don't have strlcpy() function as it's not a standard function, so i want to add it to my library, i know how to do that thankfully ^_^This is the function:
Code:
/*$OpenBSD: strlcpy.c,v 1.11 2006/05/05 15:27:38 millert Exp $*/
/*
[code]....
View 4 Replies
View Related
Mar 10, 2010
it possible to access main program function from dynamicallyinked library in c language?For example:main.c:
Code:
#include<stdio.h>
void func()
[code]...
View 2 Replies
View Related
Apr 3, 2011
when i call the "system()" function from my C program everything works well, but when i try to call it from a cgi C program it doesn't work. the server log tells me this is a permission error.i have chmod'ed 755 the cgi program but it still does not work.
View 5 Replies
View Related
Apr 3, 2010
[URL]
Code:
/* bsearch example */
#include <stdio.h>
[code]...
View 1 Replies
View Related
Oct 27, 2010
I read somewhere that you should not be reading config space to determine the irq value to pass as the first argument to request_irq(). What is the proper way to determine the value of the 'irq' argument before calling this function? Hope this is the correct forum. I don't see one for drivers.
View 1 Replies
View Related
Apr 27, 2011
Error while calling capget function (EINVAL)
View 1 Replies
View Related
Nov 17, 2009
I have legacy fortran 77 code that used to compile seamlessly using g77 on an old machine. I've tried to recompile it on a new machine (old one is dead) using the original makefile, but the linker fails under g77, while there are persisting syntax errors using gfortran. I have two source files readmixed.f and subroutines.f. Under g77 the object files are produced using
Quote:
$ f77 -c readmixed.f -o readmixed.o
$ f77 -c subroutines.f -o subroutines.o
but the linking fails with
Quote:
$ f77 readmixed.o subroutines.o -o readmixed
subroutines.o(.text+0x0): In function `norm1_':
: multiple definition of `norm1_'
readmixed.o(.text+0x3987): first defined here
[code].....
View 2 Replies
View Related
Oct 8, 2014
I have Windows 7==>Oracle VB==>Ubuntu==>Gfortran. How do I debug fortran programs? I would like to have a step by step debugging.
View 1 Replies
View Related
Sep 10, 2010
I am new to both linux and fortran programming. I am trying to read from an external file, but it gives this error message: Fortran runtime error: Bad integer for item 1 in list input Part of the code that has the problem is:
open(unit=3,file=&
atrain_data/prfdata/temp_pres_cld_profile_for_CRTM2006-06-15T200163.dat',FORM='formatted')
read(3,*)bsepos
read(3,*)toppos
write(3,*)bsepos
write(3,*)toppos
[Code]...
All the variables have been declared before and there is no problem with that. The problem (error message) is in the (first) line that deals with open(unit=3,file='..//').
View 2 Replies
View Related
Mar 5, 2011
Generating avi files for movies directly from gfortran programs. I make movies from my Fortran codes using seismic unix - SU. Need to modernize this method to make avi movies or something similar. I am quite adept at generating "C" binary files from Fortran. Have not been able to find the documented definition of AVI file format.
View 1 Replies
View Related
Aug 7, 2010
Im really new to Linux much less Compiz. When I try to start in the terminal this is what I get. What can I do?WARNING: Application calling GLX 1.3 function "glXCreatePixmap" when GLX 1.3 is not supported! This is an application bug!WARNING: Application calling GLX 1.3 function "glXDestroyPixmap" when GLX 1.3 is not supported
View 1 Replies
View Related
Apr 10, 2011
how to make a c function present in the library to execute in php and should be able to pass a any new argument back to the c library from php
View 2 Replies
View Related
Oct 15, 2010
I'd like to learn debugging techniques as much as to solve this particular problem. While trying to build yad 0.5.1:
Code:
yad-notification.o: In function `yad_notification_run':
/tmp/yad-0.5.1/src/notification.c:330: undefined reference to `gtk_status_icon_set_tooltip_text'
According to the source package's README file, "Yad depends on gtk+ only. Minimal gtk+ version is 2.12.0". I checked /var/log/packages and found gtk+2-2.14.7-i486-4 is installed.
Inspecting /tmp/yad-0.5.1/src/notification.c showed that gtk_status_icon_set_tooltip_text is a function. So it should be declared in the gtk+2-2.14.7 header files (or not?).
Checking:
Code:
c@CW8:/usr/include/gtk-2.0$ find . -name '*.h' -exec grep gtk_status_icon_set_tooltip_text {} ;
[no output]
Is this enough analysis to justify reporting an issue? Is there any more I can do before logging an issue?
OS: Slackware 13.0 32-bit.
yad download: http://code.google.com/p/yad/downloa...ar.xz&can=2&q=
The downloaded package checksums OK. Netsearching for gtk_status_icon_set_tooltip_text finds no pages.
View 3 Replies
View Related
Sep 22, 2009
I am writing device driver in which i have to call callback function from kernel space, which are saving my data. But the callback functions are in userspace. While accessing them i am getting segmentation fault.
View 1 Replies
View Related
Feb 23, 2011
When boot-up in Ubuntu 10.04LTS and open my webpage, I can only see 1/4 of the page. The temporary fix that I have found is 'compiz --replace', BUT IS THERE A PERMANENT FIX? Below are the warnings I get after the temp. fix. compiz --replace
WARNING: Application calling GLX 1.3 function "glXCreatePixmap" when GLX 1.3 is not supported! This is an application bug! Couldn't find a perfect decorator match; trying all decorators Starting gtk-window-decorator WARNING: Application calling GLX 1.3 function "glXDestroyPixmap" when GLX 1.3 is not supported! This is an application bug!
View 9 Replies
View Related
Nov 16, 2010
Code:
#include <iostream>
using namespace std;
[code]...
View 1 Replies
View Related
May 18, 2010
I am doing some Linux kernel programming for my research project. I need to record the timestamp (by using cpuid and rdtsc) when an interrupt handler (top half) is first invoked. Due to the time critical nature of the problem itself, I have to do the timestamping inside the interrupt handler itself (the first operation when the handler is called). However, I understand that tasks that are not so time critical should be deferred to a tasklet function (bottom half) for processing because other interrupts are disabled in a (top-half) interrupt handler. I am currently out of idea on how I can pass the timestamp information that I have obtained in the interrupt handler to the corresponding tasklet function.
View 2 Replies
View Related
Apr 7, 2009
I'm reading about shared, static, and dynamic libraries. What is SDL? Is it static, shared, or dynamic?
I always thought a library would be a lot of .h and .cpp files compiled separately into .o files and then if you compiled your own program you could use the -l parameter to link the library and it was all compiled together. Now I'm not so sure.
I don't even see any SDL .cpp files in my system anywhere. All I have are lots of SDL .h files in /usr/include/SDL and I don't really understand the code in them.
I'm making a wild guess here: SDL is a shared library. SDL itself is NOT compiled into my program, therefore SDL must be on any system my program tries to run on. When I compile and link SDL all it needs is the header files to know what SDL function and objects it can use. And then on every system it uses an already compiled SDL shared library thingy somewhere.
So... where is that part of SDL? All I can find are header files.
I'm thinking the advantage of shared libraries is that someone could say update SDL on their own system and take advantage of the new features without having to download new executables with the new version of SDL compiled into them for every program that uses SDL.
So if I'm making an editor and a game engine and they both use a lot of the same .cpp and .h files that I wrote and I'm tired of updating one and then the other and I need to turn them into a library, then a shared library might be kind of a silly solution. I could just make a static library. Right? Because it's not SDL. Nobody else is ever going to use this library.
View 6 Replies
View Related
Nov 18, 2009
How can we convert a dynamic library (filename.so) to a static library (filename.a) using gnu gcc . Can we get a static library form a dynamic library . I saw a few post in which the conversion form a static library to a dynamic library is mentioned but, unfortunately, not the other way.
View 4 Replies
View Related
May 24, 2010
I want to declare a function in a function, but had no success till now, see the error code below and visit the project at sourceforge
[Code]...
View 14 Replies
View Related