GuillaumeCisco edited a comment on issue #38: Python wrappers
URL: 
https://github.com/apache/incubator-milagro-crypto-c/issues/38#issuecomment-521329526
 
 
   What I tried:
   Using the file `test_pair_FP256BN.c` which use `CURVE_Order_FP256BN`.
   Creating the .so (from python wrapper generated directory) using:
   `gcc -g -I../../include -I../../../../include -fPIC -Wall -Wextra 
../../test/test_pair_FP256BN.c -shared -o ./test_pair_FP256BN.so`
   With a file named test_pair_FP256BN.py:
   ```
   import cffi
   
   ffi = cffi.FFI()
   ffi.cdef("""
      int main();
   """)
   
   
   lib = ffi.dlopen("./rom.so")
   lib.main()
   ```
   
   Then:
   ```
   $> python
   Python 2.7.15+ (default, Nov 27 2018, 23:36:35) 
   [GCC 7.3.0] on linux2
   Type "help", "copyright", "credits" or "license" for more information.
   >>> import test_pair_FP256BN
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
   ImportError: ./test_pair_FP256BN.so: undefined symbol: CURVE_Order_FP256BN
   ```
   There is something I'm not doing correctly...

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@milagro.apache.org
For additional commands, e-mail: issues-h...@milagro.apache.org

Reply via email to