473,396 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Using the Bluegiga library with C++Builder X5

I'm running into a compiler error and it has to do with PACKSTRUCT macro. I don't know what I need to change for the BGLIB and BGAPI to work with C++Builder 5X. I have scoured the Bluegiga forums and knowledge base, as well as the internet. No luck. Any suggestions or other help much appreciated.
Dec 21 '15 #1
2 1314
zmbd
5,501 Expert Mod 4TB
what is/are the specific error(s), number(s) and description(s)
Dec 22 '15 #2
here's the message at the top of the cmd_def.h file that produces the errors:
Expand|Select|Wrap|Line Numbers
  1. /*****************************************************************************
  2.  *
  3.  *      Support for compilers other than GCC and MSVC:
  4.  *      
  5.  *      To support specific compiler add compiler's structure packing directives to following macro:
  6.  *          PACKSTRUCT( decl )
  7.  *          
  8.  *      BGLIB uses PACKSTRUCT macro to add packing information for structures:
  9.  *      PACKSTRUCT(struct wifi_msg_dfu_reset_cmd_t
  10.  *      {
  11.  *          uint8    dfu;
  12.  *      });
  13.  *
  14.  *
  15.  ****************************************************************************/
  16.  
  17. /*lint -save --e{528,572,778,845,835,849}*/
  18. #include "apitypes.h"
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22.  
  23. /* Compability */
  24. #ifndef PACKSTRUCT
  25. #ifdef PACKED
  26. #define PACKSTRUCT(a) a PACKED 
  27. #else
  28. /*Default packed configuration*/
  29. #ifdef __GNUC__
  30. #ifdef _WIN32
  31. #define PACKSTRUCT( decl ) decl __attribute__((__packed__,gcc_struct))
  32. #else
  33. #define PACKSTRUCT( decl ) decl __attribute__((__packed__))
  34. #endif
  35. #define ALIGNED __attribute__((aligned(0x4)))
  36.  
  37. #else //msvc
  38.  
  39. #define PACKSTRUCT( decl ) __pragma( pack(push, 1) ) decl __pragma( pack(pop) )
  40. #define ALIGNED
  41.  
  42. #endif
  43. #endif
  44. #endif
and a typical error (there are lots like this)
[BCC32 Error] cmd_def.h(851): E2147 'pack' cannot start a parameter declaration
Full parser context
cmd_def.c(14): #include C:\Bluegiga\ble-1.3.2-122\src\bglib\cmd_def.h
Dec 22 '15 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Surendra | last post by:
Hi to all, Can any one of u solve my problem. How can i show a message box on client side using class library of .net it may be vb.net or c#.net. If any1 has any idea about it. Please let me...
0
by: Eniac | last post by:
Hello, I've started using Enterprise Library 2.0 recently and I've encountered a problem that seems to be ... well... undocumented :) Basically, when I set a Trace Listener (formatted event...
0
by: Burki | last post by:
Hi I want to know how to configure Access database using Enterprise Library Data block. I want to be able to spacify local path to mdb file in configuration file. I do not want users to creat...
2
by: aarrojado | last post by:
I´m trying to implement Rijndael algorithm AES in C language using the library GMP. And it is dificult to start programming because it as been years i do not program in C. Well if there is anybody...
6
by: =?Utf-8?B?WW9naSBXYXRjaGVy?= | last post by:
Hello, I am using Visual Studio-2003. I created a project to build my library. Since I am using third party libraries as well, I have specified those additional library dependencies in project...
0
by: zeenets | last post by:
I am using Enterprise library v3.1 for developing a windows application. its working well. but there is a security issue, when i deploy this application on client machine the...
0
by: =?Utf-8?B?U2hyaWthbnQgTW9yZQ==?= | last post by:
Using enterprise library's 3.1 Logging Application Block , how can i get the custom source name in the windows event log.When ever i am logging an error in windows event log , it gives the source...
0
by: srizzler | last post by:
Hi All: I am trying to implement Exception Handling using Enterprise Library 3.1's Exception Handling Application Block as well as Logging Blocks. I have a windows application developed in...
38
by: neovantage | last post by:
Hey all, I want to get the DPI value of uploaded image. Is there any way to get the dpi value of an uploaded image using GD Library. Kindly help me out to sort out my problem as i will be very...
4
by: tvnaidu | last post by:
I created an executable using static library instead shared lib, I am running multipe instances of this executable, does it takes more memory with static library compare to shared library?. Does...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.