Project

General

Profile

Actions

Bug #1252

closed

"Undefined reference to 'swab'" error when using GCC 5 and CrystaX NDK 10.3.1 x64 on Windows

Added by Violet G. almost 9 years ago. Updated almost 9 years ago.

Status:
Completed
Priority:
Normal
Assignee:
Category:
libcrystax
Target version:
Start date:
02/02/2016
Due date:
% Done:

100%

Estimated time:
CPU Architecture:
arm
Host OS:
Windows
Toolchain:
gcc-5
Android version:
CrystaX NDK Version:

Description

The original Google Android NDK doesn't provide the swab function, so I defined my own. After migrating to Crystax, I got the "conflicting declaration of 'void swab(const void*, void*, ssize_t)' with 'C' linkage" error. So I removed my implementation and compilation succeeded, but now linker can't find the definition for this function.

Actions #1

Updated by Dmitry M. almost 9 years ago

  • Category set to libcrystax
  • Assignee set to Dmitry M.
  • Target version set to 11.0.0
Actions #2

Updated by Dmitry M. almost 9 years ago

  • Status changed from Open to In Progress
Actions #3

Updated by Violet G. almost 9 years ago

P. S. I "fixed" the error by making my definition extern "C", but I still wonder if there's something missing in the NDK itself. Or, if swab is being declared by mistake.

Actions #4

Updated by Dmitry M. almost 9 years ago

Violet Giraffe wrote:

P. S. I "fixed" the error by making my definition extern "C", but I still wonder if there's something missing in the NDK itself. Or, if swab is being declared by mistake.

Yes, this is bug. @swab@ is declared in system headers but not implemented. I'm going to fix it. Thank you for report.

Actions #5

Updated by Dmitry M. almost 9 years ago

  • Status changed from In Progress to Completed
  • % Done changed from 0 to 100
Actions #6

Updated by Violet G. almost 9 years ago

Thanks!

Actions

Also available in: Atom PDF