Nп/п : 56 из 100
 От   : gah4                                2:5075/128        04 сен 23 13:01:48
 К    : db                                                    04 сен 23 23:04:02
 Тема : Re: Calling a C++ function from Forttran
----------------------------------------------------------------------------------
                                                                                 
@MSGID:
<b2f7b710-3644-4305-abca-0beaec277022n@googlegroups.com> 7fdf5105
@REPLY: 1@dont-email.me> e2827ca3
@REPLYADDR gah4 <gah4@u.washington.edu>
@REPLYTO 2:5075/128 gah4
@CHRS: CP866 2
@RFC: 1 0
@RFC-References: 1@dont-email.me>
@RFC-Message-ID:
<b2f7b710-3644-4305-abca-0beaec277022n@googlegroups.com>
@TZUTC: -0700
@PID: G2/1.0
@TID: FIDOGATE-5.12-ge4e8b94
On Monday, September 4, 2023 at 7:43:44 AM UTC-7, db wrote:
 
(snip)

> This is for an example of a random number generator. 
> I note a declaration of the variable type c double. 
> The function I want to call declares "long double" 
> but I doubt that I can use 

> import c long double 
> ... 
> real(kind=c long double) :: t, JBAND 

The constants are supposed to be defined for the types supported
by the associated C compiler.  (You need to write C callable C++ code.)



--- G2/1.0
 * Origin: usenet.network (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх